From 7eb5be0a4e2357d1866ada0dca84f3d527982187 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 12 Dec 2023 20:01:31 +0800 Subject: [PATCH] chore: fix update user --- store/db/postgres/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/db/postgres/user.go b/store/db/postgres/user.go index c0a300dc..8941920a 100644 --- a/store/db/postgres/user.go +++ b/store/db/postgres/user.go @@ -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)