feat: Add support for project cancellation status across the application

This commit is contained in:
2025-09-11 16:19:46 +02:00
parent 2735d46552
commit 95ef139843
13 changed files with 116 additions and 50 deletions

View File

@@ -110,7 +110,7 @@ export function updateProject(id, data, userId = null) {
coordinates = ?, assigned_to = ?, updated_at = CURRENT_TIMESTAMP
WHERE project_id = ?
`);
stmt.run(
const result = stmt.run(
data.contract_id,
data.project_name,
data.project_number,
@@ -130,6 +130,9 @@ export function updateProject(id, data, userId = null) {
data.assigned_to || null,
id
);
console.log('Update result:', result);
return result;
}
export function deleteProject(id) {