mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Treat any 2xx webhook response status code as success
This commit is contained in:
parent
d4a307f66d
commit
682c23e011
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ Meteor.methods({
|
|||
const url = integration.url;
|
||||
const response = postCatchError(url, options);
|
||||
|
||||
if (response && response.statusCode && response.statusCode === 200) {
|
||||
if (response && response.statusCode && response.statusCode >= 200 && response.statusCode < 300) {
|
||||
if (is2way) {
|
||||
const cid = params.commentId;
|
||||
const tooSoon = Lock.has(cid); // if an activity happens to fast, notification shouldn't fire with the same id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue