fix: set memo resources error in mysql (#2761)

Fix error updating memo resources in mysql
This commit is contained in:
Wen Sun 2024-01-15 21:05:07 +09:00 committed by GitHub
parent 5ebbed9115
commit a22ad90174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ func (d *DB) UpdateResource(ctx context.Context, update *store.UpdateResource) (
set, args := []string{}, []any{}
if v := update.UpdatedTs; v != nil {
set, args = append(set, "`updated_ts` = ?"), append(args, *v)
set, args = append(set, "`updated_ts` = FROM_UNIXTIME(?)"), append(args, *v)
}
if v := update.Filename; v != nil {
set, args = append(set, "`filename` = ?"), append(args, *v)