get to prod tasks
This commit is contained in:
@@ -226,7 +226,7 @@ export async function handleWebhookEvent(event: Stripe.Event) {
|
||||
}
|
||||
}
|
||||
|
||||
function mapStripeProductToTier(priceId: string): Tier {
|
||||
export function mapStripeProductToTier(priceId: string): Tier {
|
||||
if (priceId === process.env.STRIPE_PRICE_BASIC) return "basic";
|
||||
if (priceId === process.env.STRIPE_PRICE_PLUS) return "plus";
|
||||
if (priceId === process.env.STRIPE_PRICE_PREMIUM) return "premium";
|
||||
|
||||
Reference in New Issue
Block a user