diff options
author | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-08-29 22:07:40 -0400 |
---|---|---|
committer | Sam X. Chen <sam.xi.chen@gmail.com> | 2019-08-29 22:07:40 -0400 |
commit | dd0682328bc26bbe852fb19a85131e4017c547b0 (patch) | |
tree | e9171a1703b96820aefb38e7bfb3f03defbee12f /models/integrations.js | |
parent | 3f0600fed70512f87dc20fe039695d1681a73d39 (diff) | |
download | wekan-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.js | 6 |
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) { |