From f42702e13eebe5e22db82a745c5f3e5d546daf06 Mon Sep 17 00:00:00 2001 From: Nick Misasi Date: Thu, 2 Jun 2022 09:02:41 -0400 Subject: [PATCH] Add StatusOK return to the softDeleteTeamsExcept controller (#20340) * Prevent cloud limited installations from restoring teams when at or above the teams limit * Code clean up * fix i18n * Actually fix i18n * updates for govet * Update model/client4.go Co-authored-by: Vishal * [MM-44397] Restrict team creation based on subscription limits (#20282) * restrict team creation based on limits * Update api4/team.go Co-authored-by: Maria A Nunez * Fix tests Co-authored-by: Mattermod Co-authored-by: Maria A Nunez * Add additional field to teamsusage * Fix * remove useless test * Fix error for team creation * Remove apostrophe * Add ReturnStatusOK to softDeleteTeamsExcept Co-authored-by: Mattermod Co-authored-by: Vishal Co-authored-by: Maria A Nunez --- api4/team.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api4/team.go b/api4/team.go index df376545f6..8b3da9b822 100644 --- a/api4/team.go +++ b/api4/team.go @@ -463,6 +463,8 @@ func softDeleteTeamsExcept(c *Context, w http.ResponseWriter, r *http.Request) { if err != nil { c.Err = err } + + ReturnStatusOK(w) } func getTeamsForUser(c *Context, w http.ResponseWriter, r *http.Request) {