mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08:00
🐛 Fix bug in Stripe Trigger Node with existing webhooks
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user