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

This commit is contained in:
Harrison Healey
2017-06-30 21:27:09 -04:00
committed by Joram Wilander
parent 093dfd6c7f
commit 2f83ea61c7
+3 -1
View File
@@ -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)