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: disable decode patch id (#831)

boojackdca35bde877a
diff --git a/api/memo.go b/api/memo.go
index 29d0ebe66..01aa42ff0 100644
--- a/api/memo.go
+++ b/api/memo.go
@@ -57,7 +57,7 @@ type MemoCreate struct {
}
type MemoPatch struct {
- ID int
+ ID int `json:"-"`
// Standard fields
CreatedTs *int64 `json:"createdTs"`
diff --git a/api/resource.go b/api/resource.go
index b833f913c..90e47c7f7 100644
--- a/api/resource.go
+++ b/api/resource.go
@@ -41,7 +41,7 @@ type ResourceFind struct {
}
type ResourcePatch struct {
- ID int
+ ID int `json:"-"`
// Standard fields
UpdatedTs *int64
diff --git a/api/shortcut.go b/api/shortcut.go
index b4aa803a5..5eaedd3cc 100644
--- a/api/shortcut.go
+++ b/api/shortcut.go
@@ -24,7 +24,7 @@ type ShortcutCreate struct {
}
type ShortcutPatch struct {
- ID int
+ ID int `json:"-"`
// Standard fields
UpdatedTs *int64
diff --git a/api/user.go b/api/user.go
index 4e6afec02..529f3fc22 100644
--- a/api/user.go
+++ b/api/user.go
@@ -69,7 +69,7 @@ func (create UserCreate) Validate() error {
}
type UserPatch struct {
- ID int
+ ID int `json:"-"`
// Standard fields
UpdatedTs *int64