mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🐛 Allow Stripe Webhook creation if old does not exist anymore #2429
This commit is contained in:
@@ -820,7 +820,7 @@ export class StripeTrigger implements INodeType {
|
||||
try {
|
||||
await stripeApiRequest.call(this, 'GET', endpoint, {});
|
||||
} catch (error) {
|
||||
if (error.message.includes('resource_missing')) {
|
||||
if (error.httpCode === '404' || error.message.includes('resource_missing')) {
|
||||
// Webhook does not exist
|
||||
delete webhookData.webhookId;
|
||||
delete webhookData.webhookEvents;
|
||||
|
||||
Reference in New Issue
Block a user