mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-17 23:35:56 +08:00
cache issues with billing test
This commit is contained in:
parent
f03676cf7a
commit
1dc6a443cb
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user