Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: patch memo row status (#1755)

boojackc40aeb91e60a
diff --git a/store/memo.go b/store/memo.go
index fe18f793a..52f244145 100644
--- a/store/memo.go
+++ b/store/memo.go
@@ -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)
}