mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
🐛 Fix wrong currency being stored for subscription (#1213)
This commit is contained in:
parent
318775726b
commit
3cf777815b
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ async function stripeApiHandler(req: NextApiRequest, res: NextApiResponse) {
|
|||
id: subscription.id,
|
||||
active: isActive,
|
||||
priceId: price.id,
|
||||
currency: price.currency ?? null,
|
||||
currency: subscription.currency ?? null,
|
||||
createdAt: toDate(subscription.created),
|
||||
periodStart: toDate(subscription.current_period_start),
|
||||
periodEnd: toDate(subscription.current_period_end),
|
||||
|
@ -133,7 +133,7 @@ async function stripeApiHandler(req: NextApiRequest, res: NextApiResponse) {
|
|||
update: {
|
||||
active: isActive,
|
||||
priceId: price.id,
|
||||
currency: price.currency ?? null,
|
||||
currency: subscription.currency ?? null,
|
||||
createdAt: toDate(subscription.created),
|
||||
periodStart: toDate(subscription.current_period_start),
|
||||
periodEnd: toDate(subscription.current_period_end),
|
||||
|
|
Loading…
Add table
Reference in a new issue