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,
pageOptions: pageOptions,
priority,
teamId: team_id
});
}
const docs = (await provider.getDocuments(false, (progress: Progress) => {

View File

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

View File

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