1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-07-12 23:50:27 +02:00

Update user store to return the updated entities after inserting / patching them (#3843)

This commit is contained in:
Miguel de la Cruz
2022-09-15 13:58:20 +02:00
committed by GitHub
parent f574286e6e
commit dfa9d8f452
16 changed files with 163 additions and 158 deletions

View File

@ -115,7 +115,6 @@ func (a *API) handleGetMe(w http.ResponseWriter, r *http.Request) {
Email: model.SingleUser,
CreateAt: ws.UpdateAt,
UpdateAt: now,
Props: map[string]interface{}{},
}
} else {
user, err = a.app.GetUser(userID)
@ -280,7 +279,7 @@ func (a *API) handleUpdateUserConfig(w http.ResponseWriter, r *http.Request) {
return
}
var patch *model.UserPropPatch
var patch *model.UserPreferencesPatch
err = json.Unmarshal(requestBody, &patch)
if err != nil {
a.errorResponse(w, r, err)