mirror of
https://github.com/usememos/memos.git
synced 2024-12-18 16:41:44 +03:00
chore: fix update user
This commit is contained in:
parent
603a6a4971
commit
7eb5be0a4e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user