weird thing

This commit is contained in:
Gergő Móricz 2025-06-03 19:04:51 +02:00
parent 1dc6a443cb
commit 359711656a
2 changed files with 20 additions and 18 deletions

View File

@ -10,15 +10,16 @@ export async function creditUsageController(
): Promise<void> { ): Promise<void> {
try { try {
// If we already have the credit usage info from auth, use it // If we already have the credit usage info from auth, use it
if (req.acuc) { // TEMP: cache issues - mogery
res.json({ // if (req.acuc) {
success: true, // res.json({
data: { // success: true,
remaining_credits: req.acuc.remaining_credits, // data: {
}, // remaining_credits: req.acuc.remaining_credits,
}); // },
return; // });
} // return;
// }
// Otherwise fetch fresh data // Otherwise fetch fresh data
const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Scrape); const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Scrape);

View File

@ -10,15 +10,16 @@ export async function tokenUsageController(
): Promise<void> { ): Promise<void> {
try { try {
// If we already have the token usage info from auth, use it // If we already have the token usage info from auth, use it
if (req.acuc) { // TEMP: cache issues - mogery
res.json({ // if (req.acuc) {
success: true, // res.json({
data: { // success: true,
remaining_tokens: req.acuc.remaining_credits, // data: {
}, // remaining_tokens: req.acuc.remaining_credits,
}); // },
return; // });
} // return;
// }
// Otherwise fetch fresh data // Otherwise fetch fresh data
const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Extract); const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Extract);