[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
Этот коммит содержится в:
Micah Thompson
2019-07-01 16:07:59 -04:00
коммит произвёл Jesús Espino
родитель cff942f5bf
Коммит 0d5020e566
4 изменённых файлов: 14 добавлений и 14 удалений

Просмотреть файл

@@ -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)