Update auth.ts

This commit is contained in:
Nicolas 2024-10-11 15:29:25 -03:00
parent 257a951132
commit 0bff5b1a24

View File

@ -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_2_test", { input_key: api_key });
await supabase_service.rpc("auth_credit_usage_chunk_test_3", { input_key: api_key });
if (error) {
throw new Error("Failed to retrieve authentication and credit usage data: " + JSON.stringify(error));