From a871bdab2a57a7b7a16070f429351ce33d74eaad Mon Sep 17 00:00:00 2001 From: Anuj Mahajan Date: Thu, 30 Jan 2025 16:32:07 +0530 Subject: [PATCH] fix: disable check --- src/controllers/sites-audits-toggle.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/controllers/sites-audits-toggle.js b/src/controllers/sites-audits-toggle.js index 93f94ac9..94f54bbc 100644 --- a/src/controllers/sites-audits-toggle.js +++ b/src/controllers/sites-audits-toggle.js @@ -81,15 +81,16 @@ export default (dataAccess) => { if (site === null) { return { status: 404, message: `Site with baseURL: ${baseURL} not found.` }; } - - // const registeredAudits = configuration.getHandlers(); - // if (!registeredAudits[auditType]) { - // return { - // status: 404, - // message: `The "${auditType}" is not present in the configuration. List of allowed audits:` - // + ` ${Object.keys(registeredAudits).join(', ')}.`, - // }; - // } +/* + const registeredAudits = configuration.getHandlers(); + if (!registeredAudits[auditType]) { + return { + status: 404, + message: `The "${auditType}" is not present in the configuration. List of allowed audits:` + + ` ${Object.keys(registeredAudits).join(', ')}.`, + }; + } + */ hasUpdates = true; let successMessage;