mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-04 20:50:38 +08:00
Nick: billing for map
This commit is contained in:
parent
39388cdc35
commit
0c48c8a436
@ -14,6 +14,7 @@ import {
|
||||
isSameSubdomain,
|
||||
} from "../../lib/validateUrl";
|
||||
import { fireEngineMap } from "../../search/fireEngine";
|
||||
import { billTeam } from "../../services/billing/credit_billing";
|
||||
|
||||
configDotenv();
|
||||
|
||||
@ -84,6 +85,8 @@ export async function mapController(
|
||||
// remove duplicates that could be due to http/https or www
|
||||
links = [...new Set(links)];
|
||||
|
||||
await billTeam(req.auth.team_id, 1);
|
||||
|
||||
return res.status(200).json({
|
||||
success: true,
|
||||
links,
|
||||
|
Loading…
x
Reference in New Issue
Block a user