diff --git a/packages/rocketchat-integrations/server/api/api.coffee b/packages/rocketchat-integrations/server/api/api.coffee index f2d9e11873a1bec8480658220f1cc005833018f0..f5da4bf07f48909ef5e325e85d52a7e784a4bd74 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