Fix change task state not visible on UI
Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user