From a2d372ea0ee3b1b7ad7de0e8432ef174fa8f4d79 Mon Sep 17 00:00:00 2001 From: gearnode Date: Mon, 17 Mar 2025 13:24:24 +0100 Subject: [PATCH] Fix change task state not visible on UI Signed-off-by: gearnode --- pkg/coredata/task.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/coredata/task.go b/pkg/coredata/task.go index 65f32778c..351361616 100644 --- a/pkg/coredata/task.go +++ b/pkg/coredata/task.go @@ -227,6 +227,7 @@ WHERE AND id = @task_id AND version = @expected_version RETURNING + state, version; ` q = fmt.Sprintf(q, scope.SQLFragment()) @@ -242,7 +243,7 @@ RETURNING } 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 }