Skip to content

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

fix(auth): always use replica for acuc

Gergő Móricz57b313608cb6
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index f21eaf927..031757229 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -100,7 +100,7 @@ export async function getACUC(
? "auth_credit_usage_chunk_extract"
: "auth_credit_usage_chunk_test_22_credit_pack_n_extract";
while (retries < maxRetries) {
- const client = Math.random() > 0.75 ? supabase_rr_service : supabase_service;
+ const client = supabase_rr_service;
({ data, error } = await client.rpc(
rpcName,
{ input_key: api_key },