summaryrefslogtreecommitdiffstats
path: root/models/integrations.js
diff options
context:
space:
mode:
authorSam X. Chen <sam.xi.chen@gmail.com>2019-08-29 22:07:40 -0400
committerSam X. Chen <sam.xi.chen@gmail.com>2019-08-29 22:07:40 -0400
commitdd0682328bc26bbe852fb19a85131e4017c547b0 (patch)
treee9171a1703b96820aefb38e7bfb3f03defbee12f /models/integrations.js
parent3f0600fed70512f87dc20fe039695d1681a73d39 (diff)
downloadwekan-dd0682328bc26bbe852fb19a85131e4017c547b0.tar.gz
wekan-dd0682328bc26bbe852fb19a85131e4017c547b0.tar.bz2
wekan-dd0682328bc26bbe852fb19a85131e4017c547b0.zip
Add Feature: enable two-way webhooks - stage two
Diffstat (limited to 'models/integrations.js')
-rw-r--r--models/integrations.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/models/integrations.js b/models/integrations.js
index 0313c959..ce843680 100644
--- a/models/integrations.js
+++ b/models/integrations.js
@@ -90,7 +90,11 @@ Integrations.attachSchema(
);
Integrations.Const = {
GLOBAL_WEBHOOK_ID: '_global',
- WEBHOOK_TYPES: ['outgoing-webhooks', 'bidirectional-webhooks'],
+ ONEWAY: 'outgoing-webhooks',
+ TWOWAY: 'bidirectional-webhooks',
+ get WEBHOOK_TYPES() {
+ return [this.ONEWAY, this.TWOWAY];
+ },
};
const permissionHelper = {
allow(userId, doc) {