Skip to content

Commit

Permalink
feat: testing with more pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiAlexandruParaschiv committed Aug 1, 2024
1 parent 5997515 commit 449afc7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/canonical/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 449afc7

Please sign in to comment.