fix(GitLab Trigger Node): Fix trigger activation 404 error (#6711)
* fix webhook checkExists not deleting static data * improve webhook checkExists not deleting static data
This commit is contained in:
@@ -195,7 +195,7 @@ export class GitlabTrigger implements INodeType {
|
|||||||
try {
|
try {
|
||||||
await gitlabApiRequest.call(this, 'GET', endpoint, {});
|
await gitlabApiRequest.call(this, 'GET', endpoint, {});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.cause.httpCode === '404') {
|
if (error.cause.httpCode === '404' || error.description.includes('404')) {
|
||||||
// Webhook does not exist
|
// Webhook does not exist
|
||||||
delete webhookData.webhookId;
|
delete webhookData.webhookId;
|
||||||
delete webhookData.webhookEvents;
|
delete webhookData.webhookEvents;
|
||||||
|
|||||||
Reference in New Issue
Block a user