chore: skip invalida setting checks

This commit is contained in:
Steven 2023-12-23 08:55:23 +08:00
parent df5aeb6d88
commit 1b81999329

View file

@ -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
} }