Nick: etier2c
Some checks are pending
Deploy Images to GHCR / push-app-image (push) Waiting to run

This commit is contained in:
Nicolas 2024-10-29 21:01:43 -03:00
parent 0b409d7609
commit 96c579f1cd
4 changed files with 11 additions and 0 deletions

View File

@ -358,6 +358,8 @@ function getPlanByPriceId(price_id: string): PlanType {
return "growth"; return "growth";
case process.env.STRIPE_PRICE_ID_GROWTH_DOUBLE_MONTHLY: case process.env.STRIPE_PRICE_ID_GROWTH_DOUBLE_MONTHLY:
return "growthdouble"; return "growthdouble";
case process.env.STRIPE_PRICE_ID_ETIER2C:
return "etier2c";
default: default:
return "free"; return "free";
} }

View File

@ -70,6 +70,10 @@ export async function getJobPriority({
bucketLimit = 400; bucketLimit = 400;
planModifier = 0.1; planModifier = 0.1;
break; break;
case "etier2c":
bucketLimit = 1000;
planModifier = 0.05;
break;
default: default:
bucketLimit = 25; bucketLimit = 25;

View File

@ -15,6 +15,7 @@ const RATE_LIMITS = {
standardnew: 10, standardnew: 10,
growth: 50, growth: 50,
growthdouble: 50, growthdouble: 50,
etier2c: 300,
}, },
scrape: { scrape: {
default: 20, default: 20,
@ -28,6 +29,7 @@ const RATE_LIMITS = {
standardnew: 100, standardnew: 100,
growth: 1000, growth: 1000,
growthdouble: 1000, growthdouble: 1000,
etier2c: 2500,
}, },
search: { search: {
default: 20, default: 20,
@ -41,6 +43,7 @@ const RATE_LIMITS = {
standardnew: 50, standardnew: 50,
growth: 500, growth: 500,
growthdouble: 500, growthdouble: 500,
etier2c: 2500,
}, },
map:{ map:{
default: 20, default: 20,
@ -54,6 +57,7 @@ const RATE_LIMITS = {
standardnew: 50, standardnew: 50,
growth: 500, growth: 500,
growthdouble: 500, growthdouble: 500,
etier2c: 2500,
}, },
preview: { preview: {
free: 5, free: 5,

View File

@ -157,6 +157,7 @@ export type PlanType =
| "standardnew" | "standardnew"
| "growth" | "growth"
| "growthdouble" | "growthdouble"
| "etier2c"
| "free" | "free"
| ""; | "";