fix: add missing return

This commit is contained in:
Barış Soner Uşaklı
2023-01-25 13:05:12 -05:00
parent 08ad2e127a
commit cc746e206a

View File

@@ -154,6 +154,7 @@ async function expose(exposedField, method, field, req, res, next) {
const value = await method(String(req.params[field]).toLowerCase());
if (!value) {
next('route');
return;
}
res.locals[exposedField] = value;