Skip to content

Commit

Permalink
feat: replace 404 checkpoints with 404 sources
Browse files Browse the repository at this point in the history
  • Loading branch information
alinarublea committed Dec 14, 2023
1 parent fcd0199 commit 4951770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/spacecat-shared-rum-api-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const APIS = {
RUM_SOURCES: 'https://helix-pages.anywhere.run/helix-services/run-query@v3/rum-sources',
};

export const isAuditForAll = (url) => url.toUpperCase() === 'ALL';
const isAllDomains = (url) => url.toUpperCase() === 'ALL';

export async function sendRequest(url, opts) {
let respJson;
Expand Down Expand Up @@ -111,7 +111,7 @@ export default class RUMAPIClient {
));

const urls = data.map((row) => row.hostname);
return isAuditForAll(url) ? urls : urls.filter((row) => url === row);
return isAllDomains(url) ? urls : urls.filter((row) => url === row);
}

async createBacklink(url, expiry) {
Expand Down

0 comments on commit 4951770

Please sign in to comment.