🐛 Fix bug with activating some trigger nodes #1715

This commit is contained in:
Jan Oberhauser
2021-04-30 21:12:11 -05:00
parent ab1c8037de
commit 9a7de7d077
3 changed files with 4 additions and 4 deletions

View File

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