From cbee8674d2c930a1d9ee98c1f2fb76f96d666900 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Mon, 16 Nov 2015 18:18:37 -0800 Subject: Adding perm delete channels by team --- api/team.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api') 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 } -- cgit v1.2.3-1-g7c22