Skip to content

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

Update auth.ts

Nicolas257a95113231
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index 38407f0c6..8aa669cd2 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -77,7 +77,7 @@ export async function getACUC(api_key: string, cacheOnly = false): Promise<AuthC
return JSON.parse(cachedACUC);
} else if (!cacheOnly) {
const { data, error } =
- await supabase_service.rpc("auth_credit_usage_chunk", { input_key: api_key });
+ await supabase_service.rpc("auth_credit_usage_chunk_2_test", { input_key: api_key });
if (error) {
throw new Error("Failed to retrieve authentication and credit usage data: " + JSON.stringify(error));