mirror of
https://github.com/usememos/memos.git
synced 2024-12-20 09:41:58 +03:00
fix: patch memo row status (#1755)
This commit is contained in:
parent
2e34ce90a1
commit
c40aeb91e6
@ -175,6 +175,9 @@ func (s *Store) UpdateMemo(ctx context.Context, update *UpdateMemoMessage) error
|
||||
if v := update.UpdatedTs; v != nil {
|
||||
set, args = append(set, "updated_ts = ?"), append(args, *v)
|
||||
}
|
||||
if v := update.RowStatus; v != nil {
|
||||
set, args = append(set, "row_status = ?"), append(args, *v)
|
||||
}
|
||||
if v := update.Content; v != nil {
|
||||
set, args = append(set, "content = ?"), append(args, *v)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user