Skip to content

Commit

Permalink
fix: handler type and test message
Browse files Browse the repository at this point in the history
  • Loading branch information
dzehnder committed Aug 20, 2024
1 parent 4fdd401 commit 561e433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/structured-data/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export async function structuredDataHandler(baseURL, context, site) {

const siteId = site.getId();

const productDetailPages = await site.getConfig().getProductDetailPages('pdp-indexability');
const productDetailPages = await site.getConfig().getProductDetailPages('structured-data');
if (isArray(productDetailPages) && productDetailPages.length === 0) {
log.error(`No product detail pages found for site ID: ${siteId}`);
throw new Error(`No product detail pages found for site: ${baseURL}`);
Expand Down
2 changes: 1 addition & 1 deletion test/audits/structured-data.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use(sinonChai);

const sandbox = sinon.createSandbox();
const message = {
type: 'gsc-pdp-structured-data',
type: 'structured-data',
url: 'https://www.example.com',
};

Expand Down

0 comments on commit 561e433

Please sign in to comment.