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> {
|
): 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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user