mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-18 05:45: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 { RequestWithAuth } from "./types";
|
||||||
import { getACUCTeam } from "../auth";
|
import { getACUCTeam } from "../auth";
|
||||||
import { logger } from "../../lib/logger";
|
import { logger } from "../../lib/logger";
|
||||||
|
import { RateLimiterMode } from "../../types";
|
||||||
|
|
||||||
export async function creditUsageController(
|
export async function creditUsageController(
|
||||||
req: RequestWithAuth,
|
req: RequestWithAuth,
|
||||||
@ -20,7 +21,7 @@ export async function creditUsageController(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise fetch fresh data
|
// 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) {
|
if (!chunk) {
|
||||||
res.status(404).json({
|
res.status(404).json({
|
||||||
success: false,
|
success: false,
|
||||||
|
@ -21,7 +21,7 @@ export async function tokenUsageController(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise fetch fresh data
|
// 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) {
|
if (!chunk) {
|
||||||
res.status(404).json({
|
res.status(404).json({
|
||||||
success: false,
|
success: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user