summaryrefslogtreecommitdiffstats
path: root/app/team.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/team.go')
-rw-r--r--app/team.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/team.go b/app/team.go
index 41e24bf52..acc3966b9 100644
--- a/app/team.go
+++ b/app/team.go
@@ -286,10 +286,6 @@ func joinUserToTeam(team *model.Team, user *model.User) (bool, *model.AppError)
}
}
- if uua := <-Srv.Store.User().UpdateUpdateAt(user.Id); uua.Err != nil {
- return false, uua.Err
- }
-
return false, nil
}
@@ -300,6 +296,10 @@ func JoinUserToTeam(team *model.Team, user *model.User, userRequestorId string)
return nil
}
+ if uua := <-Srv.Store.User().UpdateUpdateAt(user.Id); uua.Err != nil {
+ return uua.Err
+ }
+
channelRole := model.ROLE_CHANNEL_USER.Id
if team.Email == user.Email {