summaryrefslogtreecommitdiffstats
path: root/models/activities.js
diff options
context:
space:
mode:
authornztqa <nztqa@users.noreply.github.com>2017-07-09 15:21:40 +0900
committernztqa <nztqa@users.noreply.github.com>2017-07-09 15:21:40 +0900
commit0e6cfdbb2a6f6710ca29516096a5b6efbf590276 (patch)
tree140800644d958ce10703974429cb513ee01f466e /models/activities.js
parent0d5e829c5664f83ee09dccdde852439e3b478454 (diff)
downloadwekan-0e6cfdbb2a6f6710ca29516096a5b6efbf590276.tar.gz
wekan-0e6cfdbb2a6f6710ca29516096a5b6efbf590276.tar.bz2
wekan-0e6cfdbb2a6f6710ca29516096a5b6efbf590276.zip
Add call outgoing webhooks method
Diffstat (limited to 'models/activities.js')
-rw-r--r--models/activities.js5
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);
+ }
});
}