🗃️ Add cancel at period end to subscription table (#1567)

This commit is contained in:
Luke Vella 2025-02-21 11:16:47 +00:00 committed by GitHub
parent f7d844abda
commit 292e331553
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 59 additions and 11 deletions

View file

@ -210,6 +210,7 @@ export async function POST(request: NextRequest) {
createdAt: toDate(subscription.created),
periodStart: toDate(subscription.current_period_start),
periodEnd: toDate(subscription.current_period_end),
cancelAtPeriodEnd: subscription.cancel_at_period_end,
},
});