Skip to content

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

fix(api/acuc): update acuc & tally to fix quarterly billing

Gergő Móriczf0164a08ba7e
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index b67125418..a155ac3dd 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -185,7 +185,7 @@ export async function getACUC(
? supabase_rr_service
: supabase_service;
({ data, error } = await client.rpc(
- "auth_credit_usage_chunk_37",
+ "auth_credit_usage_chunk_38",
{
input_key: api_key,
i_is_extract: isExtract,
@@ -315,7 +315,7 @@ export async function getACUCTeam(
? supabase_rr_service
: supabase_service;
({ data, error } = await client.rpc(
- "auth_credit_usage_chunk_37_from_team",
+ "auth_credit_usage_chunk_38_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 f8ffaee1e..55c00d23b 100644
--- a/apps/api/src/services/indexing/index-worker.ts
+++ b/apps/api/src/services/indexing/index-worker.ts
@@ -655,7 +655,7 @@ async function tallyBilling() {
for (const teamId of billedTeams) {
logger.info("Updating tally for team", { teamId });
- const { error } = await supabase_service.rpc("update_tally_6_team", {
+ const { error } = await supabase_service.rpc("update_tally_7_team", {
i_team_id: teamId,
});