Fix the previous fix

This commit is contained in:
KernelDeimos 2024-05-28 16:10:43 -04:00
parent 4e3a24e609
commit cd574c87ef

View File

@ -20,7 +20,10 @@ const subdomain = allowedSubdomains => {
const actual_subdomain = require('../helpers').subdomain(req); const actual_subdomain = require('../helpers').subdomain(req);
if ( ! allowedSubdomains.includes(actual_subdomain) ) { if ( ! allowedSubdomains.includes(actual_subdomain) ) {
next('route'); next('route');
return;
} }
next();
}; };
} }