mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 20:06:02 +08:00
fix: remove rawHtml properly
This commit is contained in:
parent
1368f9a87f
commit
5818236659
@ -45,6 +45,9 @@ export async function startWebScraperPipeline({
|
||||
},
|
||||
onSuccess: (result, mode) => {
|
||||
Logger.debug(`🐂 Job completed ${job.id}`);
|
||||
if (job.data.crawl_id && (!job.data.pageOptions || !job.data.pageOptions.includeRawHtml)) {
|
||||
delete result[0].rawHtml;
|
||||
}
|
||||
saveJob(job, result, token, mode);
|
||||
},
|
||||
onError: (error) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user