fix(auth): always use replica for acuc

This commit is contained in:
Gergő Móricz 2025-03-06 21:35:30 +01:00
parent 7b05512054
commit 57b313608c

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 = Math.random() > 0.75 ? supabase_rr_service : supabase_service; const client = supabase_rr_service;
({ data, error } = await client.rpc( ({ data, error } = await client.rpc(
rpcName, rpcName,
{ input_key: api_key }, { input_key: api_key },