Nick: adjust for old compatibility s2

This commit is contained in:
Nicolas 2025-02-14 11:09:09 -03:00
parent a4cf8f439c
commit ce9d3d32f6
3 changed files with 10 additions and 0 deletions

View File

@ -393,6 +393,9 @@ function getPlanByPriceId(price_id: string | null): PlanType {
case process.env.STRIPE_PRICE_ID_EXTRACT_STARTER_MONTHLY:
case process.env.STRIPE_PRICE_ID_EXTRACT_STARTER_YEARLY:
return "extract_starter";
case process.env.STRIPE_PRICE_ID_ETIER_SCALE_2_MONTHLY:
case process.env.STRIPE_PRICE_ID_ETIER_SCALE_2_YEARLY:
return "etierscale2";
case process.env.STRIPE_PRICE_ID_EXTRACT_EXPLORER_MONTHLY:
case process.env.STRIPE_PRICE_ID_EXTRACT_EXPLORER_YEARLY:
return "extract_explorer";

View File

@ -16,6 +16,7 @@ export const CONCURRENCY_LIMIT: Omit<Record<PlanType, number>, ""> = {
etier1a: 200,
etier2a: 300,
etierscale1: 150,
etierscale2: 200,
testSuite: 200,
devB: 120,
etier2d: 250,
@ -42,6 +43,7 @@ const RATE_LIMITS = {
etier1a: 1000,
etier2a: 300,
etierscale1: 150,
etierscale2: 300,
// extract ops
extract_starter: 20,
extract_explorer: 100,
@ -63,6 +65,7 @@ const RATE_LIMITS = {
etier1a: 1000,
etier2a: 2500,
etierscale1: 1500,
etierscale2: 2500,
// extract ops
extract_starter: 20,
extract_explorer: 100,
@ -84,6 +87,7 @@ const RATE_LIMITS = {
etier1a: 1000,
etier2a: 2500,
etierscale1: 1500,
etierscale2: 2500,
// extract ops
extract_starter: 20,
extract_explorer: 100,
@ -105,6 +109,7 @@ const RATE_LIMITS = {
etier1a: 1000,
etier2a: 2500,
etierscale1: 1500,
etierscale2: 2500,
// extract ops
extract_starter: 20,
extract_explorer: 100,
@ -126,6 +131,7 @@ const RATE_LIMITS = {
etier1a: 1000,
etier2a: 1000,
etierscale1: 1000,
etierscale2: 1000,
extract_starter: 20,
extract_explorer: 100,
extract_pro: 1000,

View File

@ -188,6 +188,7 @@ export type PlanType =
| "etier2c"
| "etier1a"
| "etierscale1"
| "etierscale2"
| "etier2a"
| "free"
| "testSuite"