summaryrefslogtreecommitdiff
path: root/lib/mattermost/team.rb
diff options
context:
space:
mode:
authorjulien MILLAU <mxjulien@gmail.com>2018-03-08 09:25:10 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-03-08 09:25:10 +0000
commit7fcf35605377748f38cb1a89e88742da0ba515f8 (patch)
treef6f8aca38346ea8b74e7d4a48358d3759123b588 /lib/mattermost/team.rb
parent7734e85bc6592c5ad3330c611c5f83a051b680b0 (diff)
downloadgitlab-ce-7fcf35605377748f38cb1a89e88742da0ba515f8.tar.gz
Add missing delete method in mattermost session
Diffstat (limited to 'lib/mattermost/team.rb')
-rw-r--r--lib/mattermost/team.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/mattermost/team.rb b/lib/mattermost/team.rb
index b2511f3af1d..75513a9ba04 100644
--- a/lib/mattermost/team.rb
+++ b/lib/mattermost/team.rb
@@ -16,10 +16,9 @@ module Mattermost
end
# The deletion is done async, so the response is fast.
- # On the mattermost side, this triggers an soft deletion first, after which
- # the actuall data is removed
+ # On the mattermost side, this triggers an soft deletion
def destroy(team_id:)
- session_delete("/api/v4/teams/#{team_id}?permanent=true")
+ session_delete("/api/v4/teams/#{team_id}")
end
end
end