mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: skip invalida setting checks
This commit is contained in:
@@ -109,7 +109,7 @@ func (s *APIV1Service) GetSystemStatus(c echo.Context) error {
|
|||||||
var baseValue any
|
var baseValue any
|
||||||
err := json.Unmarshal([]byte(systemSetting.Value), &baseValue)
|
err := json.Unmarshal([]byte(systemSetting.Value), &baseValue)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("Failed to unmarshal system setting value", zap.String("setting name", systemSetting.Name))
|
// Skip invalid value.
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user