Format tasks code

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-06-05 11:05:54 -07:00
parent fc008c27f4
commit 7a3c782e1a
4 changed files with 20 additions and 19 deletions

View File

@@ -1 +1 @@
ALTER TABLE tasks ADD COLUMN deadline TIMESTAMP WITH TIME ZONE;
ALTER TABLE tasks ADD COLUMN IF NOT EXISTS deadline TIMESTAMP WITH TIME ZONE;

View File

@@ -72,7 +72,7 @@ SELECT
reference_id,
time_estimate,
assigned_to,
deadline,
deadline,
created_at,
updated_at
FROM
@@ -121,7 +121,7 @@ INSERT INTO
state,
time_estimate,
assigned_to,
deadline,
deadline,
created_at,
updated_at
)
@@ -136,7 +136,7 @@ VALUES (
@state,
@time_estimate,
@assigned_to,
@deadline,
@deadline,
@created_at,
@updated_at
);
@@ -179,7 +179,7 @@ INSERT INTO
state,
time_estimate,
assigned_to,
deadline,
deadline,
created_at,
updated_at
)
@@ -194,14 +194,15 @@ VALUES (
@state,
@time_estimate,
@assigned_to,
@deadline,
@deadline,
@created_at,
@updated_at
)
ON CONFLICT (measure_id, reference_id) DO UPDATE SET
name = @name,
description = @description,
updated_at = @updated_at
updated_at = @updated_at,
deadline = @deadline
RETURNING
id,
organization_id,
@@ -212,7 +213,7 @@ RETURNING
state,
time_estimate,
assigned_to,
deadline,
deadline,
created_at,
updated_at
`
@@ -314,7 +315,7 @@ SELECT
reference_id,
time_estimate,
assigned_to,
deadline,
deadline,
created_at,
updated_at
FROM