mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08: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:
parent
95837d2604
commit
8ceb8322eb
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue