mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
🐛 Fix bug in Stripe Trigger Node with existing webhooks
This commit is contained in:
parent
3c67ac5a52
commit
1d2c286b88
|
@ -818,7 +818,7 @@ export class StripeTrigger implements INodeType {
|
|||
try {
|
||||
await stripeApiRequest.call(this, 'GET', endpoint, {});
|
||||
} catch (e) {
|
||||
if (e.message.includes('[404]:')) {
|
||||
if (e.message.includes('resource_missing')) {
|
||||
// Webhook does not exist
|
||||
delete webhookData.webhookId;
|
||||
delete webhookData.webhookEvents;
|
||||
|
|
Loading…
Reference in a new issue