mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 19:36:07 +08:00
Update scrape.ts
This commit is contained in:
parent
012bc74e14
commit
ef5c8931eb
@ -102,6 +102,9 @@ export async function scrapeController(
|
|||||||
// Don't bill if we're early returning
|
// Don't bill if we're early returning
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(req.body.extract && req.body.formats.includes("extract")) {
|
||||||
|
creditsToBeBilled = 50;
|
||||||
|
}
|
||||||
|
|
||||||
const billingResult = await billTeam(req.auth.team_id, creditsToBeBilled);
|
const billingResult = await billTeam(req.auth.team_id, creditsToBeBilled);
|
||||||
if (!billingResult.success) {
|
if (!billingResult.success) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user