mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 16:08:59 +08:00
Fix/optional chaining operators missing (#1549)
* fix: missing optional chaining operator in req.acuc.flags * fix: missing optional chaining operator in req.acuc.flags
This commit is contained in:
parent
cee481a3a9
commit
b0c203e512
@ -89,7 +89,7 @@ export async function crawlController(
|
|||||||
createdAt: Date.now(),
|
createdAt: Date.now(),
|
||||||
};
|
};
|
||||||
|
|
||||||
const crawler = crawlToCrawler(id, sc, req.acuc.flags ?? null);
|
const crawler = crawlToCrawler(id, sc, req.acuc?.flags ?? null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
sc.robots = await crawler.getRobotsTxt(scrapeOptions.skipTlsVerification);
|
sc.robots = await crawler.getRobotsTxt(scrapeOptions.skipTlsVerification);
|
||||||
|
@ -325,7 +325,7 @@ export async function mapController(
|
|||||||
abort: abort.signal,
|
abort: abort.signal,
|
||||||
mock: req.body.useMock,
|
mock: req.body.useMock,
|
||||||
filterByPath: req.body.filterByPath !== false,
|
filterByPath: req.body.filterByPath !== false,
|
||||||
flags: req.acuc.flags ?? null,
|
flags: req.acuc?.flags ?? null,
|
||||||
}),
|
}),
|
||||||
...(req.body.timeout !== undefined ? [
|
...(req.body.timeout !== undefined ? [
|
||||||
new Promise((resolve, reject) => setTimeout(() => {
|
new Promise((resolve, reject) => setTimeout(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user