diff --git a/apps/api/src/controllers/v1/credit-usage.ts b/apps/api/src/controllers/v1/credit-usage.ts index 794861a5..4499a063 100644 --- a/apps/api/src/controllers/v1/credit-usage.ts +++ b/apps/api/src/controllers/v1/credit-usage.ts @@ -10,15 +10,16 @@ export async function creditUsageController( ): Promise { try { // If we already have the credit usage info from auth, use it - if (req.acuc) { - res.json({ - success: true, - data: { - remaining_credits: req.acuc.remaining_credits, - }, - }); - return; - } + // TEMP: cache issues - mogery + // if (req.acuc) { + // res.json({ + // success: true, + // data: { + // remaining_credits: req.acuc.remaining_credits, + // }, + // }); + // return; + // } // Otherwise fetch fresh data const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Scrape); diff --git a/apps/api/src/controllers/v1/token-usage.ts b/apps/api/src/controllers/v1/token-usage.ts index 1e4f6116..356cdb9f 100644 --- a/apps/api/src/controllers/v1/token-usage.ts +++ b/apps/api/src/controllers/v1/token-usage.ts @@ -10,15 +10,16 @@ export async function tokenUsageController( ): Promise { try { // If we already have the token usage info from auth, use it - if (req.acuc) { - res.json({ - success: true, - data: { - remaining_tokens: req.acuc.remaining_credits, - }, - }); - return; - } + // TEMP: cache issues - mogery + // if (req.acuc) { + // res.json({ + // success: true, + // data: { + // remaining_tokens: req.acuc.remaining_credits, + // }, + // }); + // return; + // } // Otherwise fetch fresh data const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Extract);