From 449afc7015e0c81fd2748a07d74995667007f5ed Mon Sep 17 00:00:00 2001 From: paraschi Date: Thu, 1 Aug 2024 21:27:55 +0300 Subject: [PATCH] feat: testing with more pages --- src/canonical/handler.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/canonical/handler.js b/src/canonical/handler.js index c80bb27f..ac1ba212 100644 --- a/src/canonical/handler.js +++ b/src/canonical/handler.js @@ -107,7 +107,7 @@ async function getTopPagesForSite(url, context, log) { try { const ahrefsAPIClient = AhrefsAPIClient.createFrom(context); - const { result } = await ahrefsAPIClient.getTopPages(url, 1); + const { result } = await ahrefsAPIClient.getTopPages(url, 3); log.info('Received top pages response:', JSON.stringify(result, null, 2)); @@ -136,13 +136,6 @@ async function validateCanonicalTag(url, log) { if (!url) { const errorMessage = 'URL is undefined or null'; log.error(errorMessage); - return { - canonicalUrl: null, - checks: [{ - check: ChecksAndErrors.CANONICAL_TAG_EXISTS.check, - error: errorMessage, - }], - }; } try {