Skip to content

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

feat(api): point ACUC calls at auth_credit_usage_chunk_53 (#4012)

firecrawl-spring[bot]3d6342b84d01
diff --git a/apps/api/src/db/rpc.ts b/apps/api/src/db/rpc.ts
index 96a4ee7b2..a5ebf9fd3 100644
--- a/apps/api/src/db/rpc.ts
+++ b/apps/api/src/db/rpc.ts
@@ -34,7 +34,7 @@ export async function authCreditUsageChunk(
): Promise<AuthCreditUsageChunkRow[]> {
const rows = await execRows<AuthCreditUsageChunkRow>(
database,
- sql`select * from auth_credit_usage_chunk_52(input_key => ${input_key})`,
+ sql`select * from auth_credit_usage_chunk_53(input_key => ${input_key})`,
);
// api_key_id is a bigint column, so the pg driver hands it back as a string.
for (const row of rows) {
@@ -51,7 +51,7 @@ export function authCreditUsageChunkFromTeam(
): Promise<AuthCreditUsageChunkRow[]> {
return execRows(
database,
- sql`select * from auth_credit_usage_chunk_52_from_team(input_team => ${input_team})`,
+ sql`select * from auth_credit_usage_chunk_53_from_team(input_team => ${input_team})`,
);
}