mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 17:12:02 +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
|
// 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user