diff options
-rw-r--r-- | client/components/cards/cardDetails.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 2944b56c..ad500657 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -129,13 +129,13 @@ BlazeComponent.extendComponent({ user: Meteor.user().username, url: '', }; - - const integrations = Integrations.find({ - boardId: { $in: [card.boardId, Integrations.Const.GLOBAL_WEBHOOK_ID] }, + + const integrations = Integrations.find({ + boardId: { $in: [card.boardId, Integrations.Const.GLOBAL_WEBHOOK_ID] }, enabled: true, activities: { $in: ['CardDetailsRendered', 'all'] }, }).fetch(); - + if (integrations.length > 0) { integrations.forEach(integration => { Meteor.call( |