summaryrefslogtreecommitdiff
path: root/lib/mattermost/command.rb
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-06-05 11:55:32 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-06-05 11:55:32 +0100
commit3f9cdb9c9822f176ebe4ce8aa34a84e06bae60f0 (patch)
tree8b029adbe769e0c082f2e83ba831ba065648dbb4 /lib/mattermost/command.rb
parent7e36fa398b6f2e0304d852b7c77ef30d83e62ed4 (diff)
parent7eb2f184e6a74c84a58ba07d78d2bcaab764a42d (diff)
downloadgitlab-ce-3f9cdb9c9822f176ebe4ce8aa34a84e06bae60f0.tar.gz
Merge remote-tracking branch 'origin/master' into 39549-label-list-page-redesign-with-draggable-labels
Diffstat (limited to 'lib/mattermost/command.rb')
-rw-r--r--lib/mattermost/command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mattermost/command.rb b/lib/mattermost/command.rb
index 33e450d7f0a..704813dfdf0 100644
--- a/lib/mattermost/command.rb
+++ b/lib/mattermost/command.rb
@@ -1,7 +1,7 @@
module Mattermost
class Command < Client
def create(params)
- response = session_post("/api/v3/teams/#{params[:team_id]}/commands/create",
+ response = session_post('/api/v4/commands',
body: params.to_json)
response['token']