Fix change task state not visible on UI

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-17 13:24:24 +01:00
parent 1fbde8649b
commit a2d372ea0e

View File

@@ -227,6 +227,7 @@ WHERE
AND id = @task_id AND id = @task_id
AND version = @expected_version AND version = @expected_version
RETURNING RETURNING
state,
version; version;
` `
q = fmt.Sprintf(q, scope.SQLFragment()) q = fmt.Sprintf(q, scope.SQLFragment())
@@ -242,7 +243,7 @@ RETURNING
} }
maps.Copy(args, scope.SQLArguments()) maps.Copy(args, scope.SQLArguments())
err := conn.QueryRow(ctx, q, args).Scan(&t.Version) err := conn.QueryRow(ctx, q, args).Scan(&t.State, &t.Version)
return err return err
} }