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:
Marcus
2023-07-21 14:09:48 +02:00
committed by GitHub
parent 95837d2604
commit 8ceb8322eb

View File

@@ -195,7 +195,7 @@ export class GitlabTrigger implements INodeType {
try {
await gitlabApiRequest.call(this, 'GET', endpoint, {});
} catch (error) {
if (error.cause.httpCode === '404') {
if (error.cause.httpCode === '404' || error.description.includes('404')) {
// Webhook does not exist
delete webhookData.webhookId;
delete webhookData.webhookEvents;