mirror of
https://github.com/Lissy93/web-check.git
synced 2025-03-13 14:39:48 +01:00
Fixes block-lists job (#50)
This commit is contained in:
parent
79c88a5d9a
commit
5297b2ffe7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user