[MM-16652] Migrate "User.ResetLastPictureUpdate" to Sync by default (#11474)
* [MM-16652] Migrate "User.ResetLastPictureUpdate" to Sync by default * [Suggested Changes] Added mlog for error and removed return of userid
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
cff942f5bf
Коммит
0d5020e566
@@ -839,7 +839,9 @@ func (a *App) SetDefaultProfileImage(user *model.User) *model.AppError {
|
||||
return err
|
||||
}
|
||||
|
||||
<-a.Srv.Store.User().ResetLastPictureUpdate(user.Id)
|
||||
if err := a.Srv.Store.User().ResetLastPictureUpdate(user.Id); err != nil {
|
||||
mlog.Error(err.Error())
|
||||
}
|
||||
|
||||
a.InvalidateCacheForUser(user.Id)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user