Update scrape.ts
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user