Allow to edit time estimate

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-24 11:09:50 +01:00
parent 59ce9a28fa
commit 5887144054
4 changed files with 208 additions and 8 deletions

View File

@@ -233,6 +233,8 @@ WHERE
AND version = @expected_version
RETURNING
state,
time_estimate,
updated_at,
version;
`
q = fmt.Sprintf(q, scope.SQLFragment())
@@ -248,7 +250,7 @@ RETURNING
}
maps.Copy(args, scope.SQLArguments())
err := conn.QueryRow(ctx, q, args).Scan(&t.State, &t.Version)
err := conn.QueryRow(ctx, q, args).Scan(&t.State, &t.TimeEstimate, &t.UpdatedAt, &t.Version)
return err
}