Nick: fixes

This commit is contained in:
Nicolas 2024-08-20 21:38:11 -03:00
parent 819ad50af3
commit 90b32f16c8
3 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,7 @@ export async function runWebScraper({
crawlerOptions: crawlerOptions, crawlerOptions: crawlerOptions,
pageOptions: pageOptions, pageOptions: pageOptions,
priority, priority,
teamId: team_id
}); });
} }
const docs = (await provider.getDocuments(false, (progress: Progress) => { const docs = (await provider.getDocuments(false, (progress: Progress) => {

View File

@ -76,6 +76,7 @@ export class WebScraperDataProvider {
this.extractorOptions, this.extractorOptions,
existingHTML, existingHTML,
this.priority, this.priority,
this.teamId,
); );
processedUrls++; processedUrls++;
if (inProgress) { if (inProgress) {

View File

@ -80,6 +80,7 @@ export async function scrapWithFireEngine({
// atsv is only available for beta customers // atsv is only available for beta customers
const betaCustomersString = process.env.BETA_CUSTOMERS; const betaCustomersString = process.env.BETA_CUSTOMERS;
const betaCustomers = betaCustomersString ? betaCustomersString.split(",") : []; const betaCustomers = betaCustomersString ? betaCustomersString.split(",") : [];
if (pageOptions?.atsv && betaCustomers.includes(teamId)) { if (pageOptions?.atsv && betaCustomers.includes(teamId)) {
fireEngineOptionsParam.atsv = true; fireEngineOptionsParam.atsv = true;
} else { } else {