diff --git a/internal/logic/admin/log/updateLogSettingLogic.go b/internal/logic/admin/log/updateLogSettingLogic.go index 16cbc9f..39e5846 100644 --- a/internal/logic/admin/log/updateLogSettingLogic.go +++ b/internal/logic/admin/log/updateLogSettingLogic.go @@ -42,7 +42,7 @@ func (l *UpdateLogSettingLogic) UpdateLogSetting(req *types.LogSetting) error { // Get the field value to string fieldValue := tool.ConvertValueToString(v.Field(i)) // Update the server config - err = db.Model(&system.System{}).Where("`category` = 'server' and `key` = ?", fieldName).Update("value", fieldValue).Error + err = db.Model(&system.System{}).Where("`category` = 'log' and `key` = ?", fieldName).Update("value", fieldValue).Error if err != nil { break }