mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-06-04 11:24:40 +08:00
weird thing
This commit is contained in:
parent
1dc6a443cb
commit
359711656a
@ -10,15 +10,16 @@ export async function creditUsageController(
|
||||
): Promise<void> {
|
||||
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);
|
||||
|
@ -10,15 +10,16 @@ export async function tokenUsageController(
|
||||
): Promise<void> {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user