GH-11469 Migrate User.UpdateLastPictureUpdate to Sync by default (#11493)
* GH-11469 Migrate User.UpdateLastPictureUpdate to Sync by default * GH-11469 log error on failure
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
68703f9b76
Коммит
2f9d509284
@@ -904,7 +904,9 @@ func (a *App) SetProfileImageFromFile(userId string, file io.Reader) *model.AppE
|
||||
return model.NewAppError("SetProfileImage", "api.user.upload_profile_user.upload_profile.app_error", nil, "", http.StatusInternalServerError)
|
||||
}
|
||||
|
||||
<-a.Srv.Store.User().UpdateLastPictureUpdate(userId)
|
||||
if err := a.Srv.Store.User().UpdateLastPictureUpdate(userId); err != nil {
|
||||
mlog.Error(err.Error())
|
||||
}
|
||||
|
||||
a.InvalidateCacheForUser(userId)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user