From 359711656a95edab770565c8638b0c53b143c62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Tue, 3 Jun 2025 19:04:51 +0200 Subject: [PATCH] weird thing --- apps/api/src/controllers/v1/credit-usage.ts | 19 ++++++++++--------- apps/api/src/controllers/v1/token-usage.ts | 19 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) 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);