浏览代码

Add call outgoing webhooks method

nztqa 8 年之前
父节点
当前提交
0e6cfdbb2a
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      models/activities.js

+ 5 - 0
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);
+    }
   });
 }