Revert "Revert "Revert "temp: get acuc from main db"""
This reverts commit d3b821e827.
This commit is contained in:
@@ -136,7 +136,7 @@ export async function getACUC(
|
|||||||
const maxRetries = 5;
|
const maxRetries = 5;
|
||||||
while (retries < maxRetries) {
|
while (retries < maxRetries) {
|
||||||
const client =
|
const client =
|
||||||
/* Math.random() > (2/3) ? supabase_rr_service : */ supabase_service;
|
Math.random() > (2/3) ? supabase_rr_service : supabase_service;
|
||||||
({ data, error } = await client.rpc(
|
({ data, error } = await client.rpc(
|
||||||
"auth_credit_usage_chunk_28",
|
"auth_credit_usage_chunk_28",
|
||||||
{ input_key: api_key, i_is_extract: isExtract, tally_untallied_credits: true },
|
{ input_key: api_key, i_is_extract: isExtract, tally_untallied_credits: true },
|
||||||
@@ -247,7 +247,7 @@ export async function getACUCTeam(
|
|||||||
|
|
||||||
while (retries < maxRetries) {
|
while (retries < maxRetries) {
|
||||||
const client =
|
const client =
|
||||||
/* Math.random() > (2/3) ? supabase_rr_service : */ supabase_service;
|
Math.random() > (2/3) ? supabase_rr_service : supabase_service;
|
||||||
({ data, error } = await client.rpc(
|
({ data, error } = await client.rpc(
|
||||||
"auth_credit_usage_chunk_28_from_team",
|
"auth_credit_usage_chunk_28_from_team",
|
||||||
{ input_team: team_id, i_is_extract: isExtract, tally_untallied_credits: true },
|
{ input_team: team_id, i_is_extract: isExtract, tally_untallied_credits: true },
|
||||||
|
|||||||
Reference in New Issue
Block a user