From 5297b2ffe793ae1ff4741cb243c99a09f4f4bd40 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 9 Sep 2023 20:29:19 +0100 Subject: [PATCH] Fixes block-lists job (#50) --- api/block-lists.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/block-lists.js b/api/block-lists.js index c6ffacf..82f6b1c 100644 --- a/api/block-lists.js +++ b/api/block-lists.js @@ -94,11 +94,11 @@ const checkDomainAgainstDnsServers = async (domain) => { return results; }; -const handler = middleware(async (url) => { +const handler = async (url) => { const domain = new URL(url).hostname; const results = await checkDomainAgainstDnsServers(domain); return { blocklists: results }; -}); +}; module.exports = middleware(handler); module.exports.handler = middleware(handler);