diff options
Diffstat (limited to 'app/team.go')
-rw-r--r-- | app/team.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/team.go b/app/team.go index bff448f7c..e4a71d7d5 100644 --- a/app/team.go +++ b/app/team.go @@ -638,7 +638,7 @@ func InviteNewUsersToTeam(emailList []string, teamId, senderId string) *model.Ap var invalidEmailList []string for _, email := range emailList { - if ! isTeamEmailAddressAllowed(email) { + if !isTeamEmailAddressAllowed(email) { invalidEmailList = append(invalidEmailList, email) } } @@ -747,6 +747,10 @@ func PermanentDeleteTeam(team *model.Team) *model.AppError { return result.Err } + if result := <-Srv.Store.Command().PermanentDeleteByTeam(team.Id); result.Err != nil { + return result.Err + } + if result := <-Srv.Store.Team().PermanentDelete(team.Id); result.Err != nil { return result.Err } |