Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: stripe webhooks
Marc Seitz90e5f2ed7544
diff --git a/ee/stripe/webhooks/checkout-session-completed.ts b/ee/stripe/webhooks/checkout-session-completed.tsindex dfb671e3..0c3abdba 100644--- a/ee/stripe/webhooks/checkout-session-completed.ts+++ b/ee/stripe/webhooks/checkout-session-completed.ts@@ -82,7 +82,7 @@ export async function checkoutSessionCompleted(},data: {stripeId,- plan: plan.slug,+ plan: `${plan.slug}${isOldAccount ? "+old" : ""}`,subscriptionId,startsAt: subscriptionStart,endsAt: subscriptionEnd,diff --git a/ee/stripe/webhooks/customer-subscription-updated.ts b/ee/stripe/webhooks/customer-subscription-updated.tsindex 7c8099a8..c484a7e3 100644--- a/ee/stripe/webhooks/customer-subscription-updated.ts+++ b/ee/stripe/webhooks/customer-subscription-updated.ts@@ -87,7 +87,7 @@ export async function customerSubsciptionUpdated(await prisma.team.update({where: { stripeId },data: {- plan: plan.slug,+ plan: `${plan.slug}${isOldAccount ? "+old" : ""}`,subscriptionId,startsAt,endsAt,