Bug de finaliazacion de tareas erroneas

This commit is contained in:
2026-04-09 09:08:11 +02:00
parent 7ff3f13af4
commit 5ea5939e3a
2 changed files with 3 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ export class ObjeniousOperationsRepository implements IOperationsRepository {
request_id = COALESCE($4, request_id),
mass_action_id = COALESCE($5, mass_action_id),
last_change_date = now() at time zone 'utc',
end_date = CASE WHEN $2 IN ('finished') THEN now() at time zone 'utc' ELSE end_date END,
end_date = CASE WHEN $2 IN ('finished','error') THEN now() at time zone 'utc' ELSE end_date END,
objenious_status = $6
WHERE id = $1`;