1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: settings dialog for mail reports

This commit is contained in:
Ferdinand Mütsch
2021-04-30 16:20:08 +02:00
parent a4e7158db2
commit ef9303e61e
15 changed files with 584 additions and 482 deletions

View File

@ -167,6 +167,7 @@ func (h *SettingsHandler) actionUpdateUser(w http.ResponseWriter, r *http.Reques
user.Email = payload.Email
user.Location = payload.Location
user.ReportsWeekly = payload.ReportsWeekly
if _, err := h.userSrvc.Update(user); err != nil {
return http.StatusInternalServerError, "", conf.ErrInternalServerError