summaryrefslogtreecommitdiffstats
path: root/models/activities.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-09-01 22:11:13 +0300
committerLauri Ojansivu <x@xet7.org>2017-09-01 22:11:13 +0300
commit01bbc089daad2754b3c67f1bd5d993a0999fd112 (patch)
tree1d5a28a973d6374044b2a5894c8ec2d64e89a4a1 /models/activities.js
parent491a352792238abf58ba9d973b5009bff581f904 (diff)
parent1048718f0b133944b9e46e345d9ad38bbd162b30 (diff)
downloadwekan-01bbc089daad2754b3c67f1bd5d993a0999fd112.tar.gz
wekan-01bbc089daad2754b3c67f1bd5d993a0999fd112.tar.bz2
wekan-01bbc089daad2754b3c67f1bd5d993a0999fd112.zip
Merge branch 'devel' of https://github.com/andresmanelli/wekan into andresmanelli-devel
Diffstat (limited to 'models/activities.js')
-rw-r--r--models/activities.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/activities.js b/models/activities.js
index 208dd629..c732a940 100644
--- a/models/activities.js
+++ b/models/activities.js
@@ -140,9 +140,9 @@ if (Meteor.isServer) {
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);
+ const integrations = Integrations.find({ boardId: board._id, type: 'outgoing-webhooks', enabled: true, activities: { '$in': [description, 'all'] } }).fetch();
+ if (integrations.length > 0) {
+ Meteor.call('outgoingWebhooks', integrations, description, params);
}
});
}