From a4ccfed69ffaa155d7f980bd62a8078802310203 Mon Sep 17 00:00:00 2001 From: martinst06 Date: Wed, 8 Jan 2025 14:38:08 +0100 Subject: [PATCH] refactor: missing parameter --- src/metatags/handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/metatags/handler.js b/src/metatags/handler.js index 8cddbf40..29df65bf 100644 --- a/src/metatags/handler.js +++ b/src/metatags/handler.js @@ -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(