From 08593fc635bbad6538394fc74b6d78fde669b67e Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Thu, 24 Dec 2015 16:25:24 -0200 Subject: [PATCH] Get integration name from body --- packages/rocketchat-integrations/server/api/api.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/rocketchat-integrations/server/api/api.coffee b/packages/rocketchat-integrations/server/api/api.coffee index f2d9e11873a..f5da4bf07f4 100644 --- a/packages/rocketchat-integrations/server/api/api.coffee +++ b/packages/rocketchat-integrations/server/api/api.coffee @@ -130,7 +130,7 @@ Api.addRoute 'add/:integrationId/:userId/:token', authRequired: true, Meteor.call 'addOutgoingIntegration', username: 'rocket.cat' urls: [@bodyParams.target_url] - name: @bodyParams.data.name + name: @bodyParams.name channel: @bodyParams.data.channel_name triggerWords: @bodyParams.data.trigger_words @@ -141,7 +141,7 @@ Api.addRoute 'add/:integrationId/:userId/:token', authRequired: true, Meteor.call 'addOutgoingIntegration', username: 'rocket.cat' urls: [@bodyParams.target_url] - name: @bodyParams.data.name + name: @bodyParams.name channel: @bodyParams.data.username triggerWords: @bodyParams.data.trigger_words