change order of loading variables

pull/1700/head
Gabriel Engel 10 years ago
parent ec5df83b69
commit 2463252093
  1. 6
      packages/rocketchat-integrations/server/api/api.coffee

@ -71,9 +71,9 @@ Api.addRoute ':integrationId/:userId/:token', authRequired: true,
error: 'invalid-channel-type'
message =
avatar: integration.avatar or @bodyParams.avatar or @bodyParams.icon_url
emoji: integration.emoji or @bodyParams.emoji or @bodyParams.icon_emoji
alias: integration.alias or @bodyParams.alias or @bodyParams.username
avatar: @bodyParams.icon_url or @bodyParams.avatar or integration.avatar
emoji: @bodyParams.icon_emoji or @bodyParams.emoji or integration.emoji
alias: @bodyParams.username or @bodyParams.alias or integration.alias
msg: @bodyParams.text or ''
attachments: @bodyParams.attachments
parseUrls: false

Loading…
Cancel
Save