PLT-6830 Fixed updating profile image not invalidating cache (#6814)

Этот коммит содержится в:
Harrison Healey
2017-06-30 21:27:09 -04:00
коммит произвёл Joram Wilander
родитель 093dfd6c7f
Коммит 2f83ea61c7

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

@@ -823,7 +823,9 @@ func SetProfileImage(userId string, imageData *multipart.FileHeader) *model.AppE
return model.NewLocAppError("SetProfileImage", "api.user.upload_profile_user.upload_profile.app_error", nil, "")
}
Srv.Store.User().UpdateLastPictureUpdate(userId)
<-Srv.Store.User().UpdateLastPictureUpdate(userId)
InvalidateCacheForUser(userId)
if user, err := GetUser(userId); err != nil {
l4g.Error(utils.T("api.user.get_me.getting.error"), userId)