Skip to content

Commit 3d6342b

Browse files
feat(api): point ACUC calls at auth_credit_usage_chunk_53 (firecrawl#4012)
Switches authCreditUsageChunk / authCreditUsageChunkFromTeam to the v53 RPCs, which auto-fall-back plan-less teams in multi-team orgs to org-wide/Scale- Enterprise rate limits. Requires the firecrawl-db v53 migration to be applied first. Co-authored-by: firecrawl-spring[bot] <254786068+firecrawl-spring[bot]@users.noreply.github.com> Co-authored-by: micahstairs <micah@sideguide.dev>
1 parent d59b65f commit 3d6342b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/api/src/db/rpc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function authCreditUsageChunk(
3434
): Promise<AuthCreditUsageChunkRow[]> {
3535
const rows = await execRows<AuthCreditUsageChunkRow>(
3636
database,
37-
sql`select * from auth_credit_usage_chunk_52(input_key => ${input_key})`,
37+
sql`select * from auth_credit_usage_chunk_53(input_key => ${input_key})`,
3838
);
3939
// api_key_id is a bigint column, so the pg driver hands it back as a string.
4040
for (const row of rows) {
@@ -51,7 +51,7 @@ export function authCreditUsageChunkFromTeam(
5151
): Promise<AuthCreditUsageChunkRow[]> {
5252
return execRows(
5353
database,
54-
sql`select * from auth_credit_usage_chunk_52_from_team(input_team => ${input_team})`,
54+
sql`select * from auth_credit_usage_chunk_53_from_team(input_team => ${input_team})`,
5555
);
5656
}
5757

0 commit comments

Comments
 (0)