chore: fix update user

This commit is contained in:
Steven 2023-12-12 20:01:31 +08:00
parent 603a6a4971
commit 7eb5be0a4e

View File

@ -49,7 +49,7 @@ func (d *DB) UpdateUser(ctx context.Context, update *store.UpdateUser) (*store.U
// Conditionally add set clauses
if v := update.UpdatedTs; v != nil {
builder = builder.Set("updated_ts", squirrel.Expr("to_timestamp(?)", *v))
builder = builder.Set("updated_ts", *v)
}
if v := update.RowStatus; v != nil {
builder = builder.Set("row_status", *v)