Skip to content

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

fix: improvement

Marc Seitzb32fabc3ab3c
diff --git a/ee/features/billing/cancellation/api/pause-route.ts b/ee/features/billing/cancellation/api/pause-route.ts
index 96dbea00..d361bf48 100644
--- a/ee/features/billing/cancellation/api/pause-route.ts
+++ b/ee/features/billing/cancellation/api/pause-route.ts
@@ -72,7 +72,7 @@ export async function handleRoute(req: NextApiRequest, res: NextApiResponse) {
await stripe.subscriptions.update(team.subscriptionId, {
pause_collection: {
behavior: "mark_uncollectible",
- resumes_at: pauseEndsAt.getTime() / 1000, // Convert to seconds
+ resumes_at: Math.floor(pauseEndsAt.getTime() / 1000), // seconds (int)
},
metadata: {
pause_starts_at: pauseStartsAt.toISOString(),