diff options
Diffstat (limited to 'api/team.go')
-rw-r--r-- | api/team.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/team.go b/api/team.go index eb8b0772d..35c770c20 100644 --- a/api/team.go +++ b/api/team.go @@ -599,6 +599,10 @@ func PermanentDeleteTeam(c *Context, team *model.Team) *model.AppError { } } + if result := <-Srv.Store.Channel().PermanentDeleteByTeam(team.Id); result.Err != nil { + return result.Err + } + if result := <-Srv.Store.Team().PermanentDelete(team.Id); result.Err != nil { return result.Err } |