Skip to content

Commit

Permalink
refactor: missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinst06 committed Jan 8, 2025
1 parent fca597d commit a4ccfed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metatags/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ async function fetchAndProcessPageObject(s3Client, bucketName, key, prefix, log)
};
}

export async function auditMetaTagsRunner(baseURL, context) {
export async function auditMetaTagsRunner(baseURL, context, site) {
const { log, s3Client } = context;
// Fetch site's scraped content from S3
const bucketName = context.env.S3_SCRAPER_BUCKET_NAME;
const prefix = `scrapes/${baseURL.siteId}/`;
const prefix = `scrapes/${site.getId()}/`;
const scrapedObjectKeys = await getObjectKeysUsingPrefix(s3Client, bucketName, prefix, log);
const extractedTags = {};
const pageMetadataResults = await Promise.all(scrapedObjectKeys.map(
Expand Down

0 comments on commit a4ccfed

Please sign in to comment.