Commit 7eb5be0a authored by Steven's avatar Steven

chore: fix update user

parent 603a6a49
...@@ -49,7 +49,7 @@ func (d *DB) UpdateUser(ctx context.Context, update *store.UpdateUser) (*store.U ...@@ -49,7 +49,7 @@ func (d *DB) UpdateUser(ctx context.Context, update *store.UpdateUser) (*store.U
// Conditionally add set clauses // Conditionally add set clauses
if v := update.UpdatedTs; v != nil { 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 { if v := update.RowStatus; v != nil {
builder = builder.Set("row_status", *v) builder = builder.Set("row_status", *v)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment