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.

chore: skip invalida setting checks

Steven1b819993292d
diff --git a/api/v1/system.go b/api/v1/system.go
index 1dbe0210c..89513535b 100644
--- a/api/v1/system.go
+++ b/api/v1/system.go
@@ -109,7 +109,7 @@ func (s *APIV1Service) GetSystemStatus(c echo.Context) error {
var baseValue any
err := json.Unmarshal([]byte(systemSetting.Value), &baseValue)
if err != nil {
- log.Warn("Failed to unmarshal system setting value", zap.String("setting name", systemSetting.Name))
+ // Skip invalid value.
continue
}