Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

chore(api): drop ACUC plan_priority references (#4132)

firecrawl-spring[bot]0d052cb12f89
diff --git a/apps/api/src/controllers/__tests__/auth.test.ts b/apps/api/src/controllers/__tests__/auth.test.ts
index 1be79f79a..46548609c 100644
--- a/apps/api/src/controllers/__tests__/auth.test.ts
+++ b/apps/api/src/controllers/__tests__/auth.test.ts
@@ -138,7 +138,6 @@ describe("authenticateUser", () => {
api_key_id: 1,
team_id: "team-1",
org_id: "org-1",
- plan_priority: {},
flags: null,
},
]);
@@ -180,7 +179,6 @@ describe("authenticateUser", () => {
api_key_id: 1,
team_id: "team-1",
org_id: "org-1",
- plan_priority: {},
flags: null,
},
]);
@@ -357,7 +355,6 @@ describe("authenticateUser", () => {
api_key_id: 1,
team_id: "team-2",
org_id: "org-2",
- plan_priority: {},
flags: null,
},
]);
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index 7540da00b..71addef74 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -86,10 +86,6 @@ const mockPreviewACUC: (
api_key_id: 0,
team_id,
org_id: "preview",
- plan_priority: {
- bucketLimit: 25,
- planModifier: 0.1,
- },
flags: null,
is_extract,
});
@@ -99,10 +95,6 @@ const mockACUC: () => AuthCreditUsageChunk = () => ({
api_key_id: 0,
team_id: "bypass",
org_id: "bypass",
- plan_priority: {
- bucketLimit: 25,
- planModifier: 0.1,
- },
flags: null,
is_extract: false,
});
diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.ts
index 344049f3a..b4db0a1bc 100644
--- a/apps/api/src/controllers/v1/types.ts
+++ b/apps/api/src/controllers/v1/types.ts
@@ -1258,10 +1258,6 @@ export type AuthCreditUsageChunk = {
api_key_id_text?: string;
team_id: string;
org_id: string;
- plan_priority: {
- bucketLimit: number;
- planModifier: number;
- };
flags: TeamFlags;
// appended on JS-side