diff options
| author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-05-15 11:13:49 -0400 |
|---|---|---|
| committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-05-28 09:18:43 -0400 |
| commit | f124b6fd11a40d4538c64b5734e08727cba24305 (patch) | |
| tree | 9e7b44375bd1f7ed2dcd57901c4007f49dea3def /lib/mattermost/command.rb | |
| parent | 71dea693c61295c16cb9c28c76b1122a3b8a3acf (diff) | |
| download | gitlab-ce-f124b6fd11a40d4538c64b5734e08727cba24305.tar.gz | |
Updated Mattermost integration to use Mattermost API v4
Diffstat (limited to 'lib/mattermost/command.rb')
| -rw-r--r-- | lib/mattermost/command.rb | 2 |
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'] |
