mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
fix: patch memo row status (#1755)
This commit is contained in:
parent
2e34ce90a1
commit
c40aeb91e6
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue