Update runWebScraper.ts

This commit is contained in:
Nicolas 2024-08-28 22:39:50 -03:00
parent 67229c6b3a
commit 02410aca36

View File

@ -44,9 +44,6 @@ 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) => {