Skip to content

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

chore: remove unreachable code

Marc Seitz9d392a91996c
diff --git a/ee/stripe/webhooks/customer-subscription-deleted.ts b/ee/stripe/webhooks/customer-subscription-deleted.ts
index 87237d14..e3ddbc83 100644
--- a/ee/stripe/webhooks/customer-subscription-deleted.ts
+++ b/ee/stripe/webhooks/customer-subscription-deleted.ts
@@ -35,20 +35,6 @@ export async function customerSubscriptionDeleted(
select: { id: true },
});
- if (!team) {
- await log({
- message:
- "Team with Stripe ID *`" +
- stripeId +
- "` and Subscription ID *`" +
- subscriptionId +
- "` not found in Stripe webhook `customer.subscription.deleted` callback" +
- `\n\n Event: https://dashboard.stripe.com/events/${event.id}`,
- type: "error",
- });
- return res.status(200).json({ received: true });
- }
-
await log({
message: ":cry: Team *`" + team.id + "`* deleted their subscription",
type: "info",