mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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 {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user