From 72f61ab96aabf65c162c8d94b5b843b5108ee1a9 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 31 Jul 2017 08:52:45 -0700 Subject: make cli team / channel delete operations also delete webhooks and slash commands (#7028) --- app/team.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/team.go') 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 } -- cgit v1.2.3-1-g7c22