Add `UpdateNotify` Type to saveSettingsHandler()

pull/258/head
Emanuel Bennici 2019-10-04 14:22:35 +02:00
parent e73993cef2
commit 29ace420ae
No known key found for this signature in database
GPG Key ID: 17FA2D56BAD01661
1 changed files with 4 additions and 0 deletions

View File

@ -62,11 +62,15 @@ func saveSettingsHandler(w http.ResponseWriter, r *http.Request) {
timeFloat, _ := strconv.ParseFloat(timezone, 10)
app.Timezone = float32(timeFloat)
app.UpdateNotify = types.NewNullBool(form.Get("update_notify") == "true")
app.UseCdn = types.NewNullBool(form.Get("enable_cdn") == "on")
core.CoreApp, err = core.UpdateCore(app)
if err != nil {
utils.Log(3, fmt.Sprintf("issue updating Core: %v", err.Error()))
}
//notifiers.OnSettingsSaved(core.CoreApp.ToCore())
ExecuteResponse(w, r, "settings.gohtml", core.CoreApp, "/settings")
}