Browse Source

Add call outgoing webhooks method

nztqa 8 năm trước cách đây
mục cha
commit
0e6cfdbb2a
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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);
+    }
   });
 }