Skip to content

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

feat(billing): switch to auth_credit_usage_chunk_41 and update_tally_9_team (#2805)

firecrawl-spring[bot]a5fb80ea53d0
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index 519699588..65a150ff0 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -186,7 +186,7 @@ export async function getACUC(
? supabase_rr_service
: supabase_service;
({ data, error } = await client.rpc(
- "auth_credit_usage_chunk_40",
+ "auth_credit_usage_chunk_41",
{
input_key: api_key,
i_is_extract: isExtract,
@@ -316,7 +316,7 @@ export async function getACUCTeam(
? supabase_rr_service
: supabase_service;
({ data, error } = await client.rpc(
- "auth_credit_usage_chunk_40_from_team",
+ "auth_credit_usage_chunk_41_from_team",
{
input_team: team_id,
i_is_extract: isExtract,
diff --git a/apps/api/src/services/indexing/index-worker.ts b/apps/api/src/services/indexing/index-worker.ts
index fb883005e..9daa1972c 100644
--- a/apps/api/src/services/indexing/index-worker.ts
+++ b/apps/api/src/services/indexing/index-worker.ts
@@ -666,7 +666,7 @@ async function tallyBilling() {
for (const teamId of billedTeams) {
logger.info("Updating tally for team", { teamId });
- const { error } = await supabase_service.rpc("update_tally_8_team", {
+ const { error } = await supabase_service.rpc("update_tally_9_team", {
i_team_id: teamId,
});