mirror of
https://github.com/usememos/memos.git
synced 2025-01-31 01:36:25 +08:00
fix: set memo resources error in mysql (#2761)
Fix error updating memo resources in mysql
This commit is contained in:
parent
5ebbed9115
commit
a22ad90174
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue