summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r--webapp/client/client.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index d8218490e..398ce4f83 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1494,13 +1494,13 @@ export default class Client {
end(this.handleResponse.bind(this, 'listCommands', success, error));
}
- executeCommand(channelId, command, suggest, success, error) {
+ executeCommand(command, commandArgs, success, error) {
request.
post(`${this.getCommandsRoute()}/execute`).
set(this.defaultHeaders).
type('application/json').
accept('application/json').
- send({channelId, command, suggest: String(suggest)}).
+ send({command, ...commandArgs}).
end(this.handleResponse.bind(this, 'executeCommand', success, error));
this.track('api', 'api_integrations_used');