mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
🐛 Allow Stripe Webhook creation if old does not exist anymore #2429
This commit is contained in:
parent
345c94bd37
commit
8427ade2e6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue