chore: update memo service

This commit is contained in:
Steven
2023-12-20 23:14:15 +08:00
parent fc01a796f8
commit 762cb25227
7 changed files with 957 additions and 186 deletions

View File

@@ -152,11 +152,7 @@ func (d *DB) UpdateMemo(ctx context.Context, update *store.UpdateMemo) error {
}
args = append(args, update.ID)
stmt := `
UPDATE memo
SET ` + strings.Join(set, ", ") + `
WHERE id = ?
`
stmt := `UPDATE memo SET ` + strings.Join(set, ", ") + ` WHERE id = ?`
if _, err := d.db.ExecContext(ctx, stmt, args...); err != nil {
return err
}