Revert "fix(auth): always use replica for acuc"

This reverts commit 57b313608cb6e9f3c123e4754c653fef8dfacbdf.
This commit is contained in:
Nicolas 2025-03-06 17:53:28 -03:00
parent 783fad90dd
commit 5a149a1c30

View File

@ -100,7 +100,7 @@ export async function getACUC(
? "auth_credit_usage_chunk_extract" ? "auth_credit_usage_chunk_extract"
: "auth_credit_usage_chunk_test_22_credit_pack_n_extract"; : "auth_credit_usage_chunk_test_22_credit_pack_n_extract";
while (retries < maxRetries) { while (retries < maxRetries) {
const client = supabase_rr_service; const client = Math.random() > 0.75 ? supabase_rr_service : supabase_service;
({ data, error } = await client.rpc( ({ data, error } = await client.rpc(
rpcName, rpcName,
{ input_key: api_key }, { input_key: api_key },