Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: add return statement

Marc Seitz2403c7c1f167
diff --git a/ee/stripe/webhooks/invoice-upcoming.ts b/ee/stripe/webhooks/invoice-upcoming.ts
index 8618d8b8..d47325d0 100644
--- a/ee/stripe/webhooks/invoice-upcoming.ts
+++ b/ee/stripe/webhooks/invoice-upcoming.ts
@@ -31,7 +31,7 @@ export async function invoiceUpcoming(
item.price.recurring.interval_count === 12)
);
}
- return false;
+ return res.status(200).json({ received: true });
});
if (!hasYearlyPlan) {
@@ -39,7 +39,7 @@ export async function invoiceUpcoming(
message: "Invoice is not for yearly renewal, skipping reminder email",
type: "info",
});
- return;
+ return res.status(200).json({ received: true });
}
const customerEmail = invoice.customer_email;
@@ -50,7 +50,7 @@ export async function invoiceUpcoming(
message: "No customer email found in invoice.upcoming event",
type: "error",
});
- return;
+ return res.status(200).json({ received: true });
}
// Calculate renewal date (period_end is when the invoice will be charged)