Skip to content

Commit

Permalink
Merge pull request #661 from pokt-foundation/pricing-troubleshoot
Browse files Browse the repository at this point in the history
fixing legacy plan issue
  • Loading branch information
fredteumer authored Aug 31, 2024
2 parents 17b9aad + 8eef9c2 commit 0ce5ddc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/routes/api.stripe.webhook/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const action: ActionFunction = async ({ request }) => {
if (sessionCompleted.metadata?.account_id) {
const formData = new FormData()
formData.set("id", sessionCompleted.metadata.account_id)
formData.set("type", PayPlanType.PayAsYouGoV0)
formData.set("type", PayPlanType.PlanUnlimited)
formData.set("subscription", sessionCompleted.subscription)

// update account plan and store subscription id
Expand Down
6 changes: 2 additions & 4 deletions app/utils/planUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ export function isFree(planType: PayPlanType) {
}

export function isLegacyPlan(planType: PayPlanType) {
return !(
return (
planType === PayPlanType.PayAsYouGoV0 ||
planType === PayPlanType.FreetierV0 ||
planType === PayPlanType.Enterprise ||
planType === PayPlanType.PlanUnlimited ||
planType === PayPlanType.PlanFree
planType === PayPlanType.Enterprise
)
}

Expand Down

0 comments on commit 0ce5ddc

Please sign in to comment.