mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 21:45:55 +08:00
Update search.ts
This commit is contained in:
parent
ce425d966f
commit
cbc47305cc
@ -77,6 +77,7 @@ async function scrapeSearchResult(
|
|||||||
costTracking: CostTracking,
|
costTracking: CostTracking,
|
||||||
flags: TeamFlags,
|
flags: TeamFlags,
|
||||||
directToBullMQ: boolean = false,
|
directToBullMQ: boolean = false,
|
||||||
|
bypassBilling: boolean = false,
|
||||||
): Promise<Document> {
|
): Promise<Document> {
|
||||||
const jobId = uuidv4();
|
const jobId = uuidv4();
|
||||||
const jobPriority = await getJobPriority({
|
const jobPriority = await getJobPriority({
|
||||||
@ -100,7 +101,7 @@ async function scrapeSearchResult(
|
|||||||
mode: "single_urls" as Mode,
|
mode: "single_urls" as Mode,
|
||||||
team_id: options.teamId,
|
team_id: options.teamId,
|
||||||
scrapeOptions: options.scrapeOptions,
|
scrapeOptions: options.scrapeOptions,
|
||||||
internalOptions: { teamId: options.teamId, useCache: true },
|
internalOptions: { teamId: options.teamId, useCache: true, bypassBilling },
|
||||||
origin: options.origin,
|
origin: options.origin,
|
||||||
is_scrape: true,
|
is_scrape: true,
|
||||||
startTime: Date.now(),
|
startTime: Date.now(),
|
||||||
@ -242,6 +243,7 @@ export async function searchController(
|
|||||||
costTracking,
|
costTracking,
|
||||||
req.acuc?.flags ?? null,
|
req.acuc?.flags ?? null,
|
||||||
(req.acuc?.price_credits ?? 0) <= 3000,
|
(req.acuc?.price_credits ?? 0) <= 3000,
|
||||||
|
isSearchPreview,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user