diff options
author | nztqa <nztqa@users.noreply.github.com> | 2017-07-09 15:21:40 +0900 |
---|---|---|
committer | nztqa <nztqa@users.noreply.github.com> | 2017-07-09 15:21:40 +0900 |
commit | 0e6cfdbb2a6f6710ca29516096a5b6efbf590276 (patch) | |
tree | 140800644d958ce10703974429cb513ee01f466e | |
parent | 0d5e829c5664f83ee09dccdde852439e3b478454 (diff) | |
download | wekan-0e6cfdbb2a6f6710ca29516096a5b6efbf590276.tar.gz wekan-0e6cfdbb2a6f6710ca29516096a5b6efbf590276.tar.bz2 wekan-0e6cfdbb2a6f6710ca29516096a5b6efbf590276.zip |
Add call outgoing webhooks method
-rw-r--r-- | models/activities.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/models/activities.js b/models/activities.js index 9a41d4aa..f1e52493 100644 --- a/models/activities.js +++ b/models/activities.js @@ -131,5 +131,10 @@ if (Meteor.isServer) { Notifications.getUsers(participants, watchers).forEach((user) => { Notifications.notify(user, title, description, params); }); + + const integration = Integrations.findOne({ boardId: board._id, type: 'outgoing-webhooks', enabled: true }); + if (integration) { + Meteor.call('outgoingWebhooks', integration, description, params); + } }); } |