cache issues with billing test

This commit is contained in:
Gergő Móricz 2025-06-03 18:46:55 +02:00
parent f03676cf7a
commit 1dc6a443cb
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@ import { Request, Response } from "express";
import { RequestWithAuth } from "./types";
import { getACUCTeam } from "../auth";
import { logger } from "../../lib/logger";
import { RateLimiterMode } from "../../types";
export async function creditUsageController(
req: RequestWithAuth,
@ -20,7 +21,7 @@ export async function creditUsageController(
}
// Otherwise fetch fresh data
const chunk = await getACUCTeam(req.auth.team_id);
const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Scrape);
if (!chunk) {
res.status(404).json({
success: false,

View File

@ -21,7 +21,7 @@ export async function tokenUsageController(
}
// Otherwise fetch fresh data
const chunk = await getACUCTeam(req.auth.team_id, false, true, RateLimiterMode.Extract);
const chunk = await getACUCTeam(req.auth.team_id, false, false, RateLimiterMode.Extract);
if (!chunk) {
res.status(404).json({
success: false,