catch all deleted/missing and 404

This commit is contained in:
Barış Soner Uşaklı
2024-06-11 18:28:10 -04:00
parent 1ced3eb9f1
commit 35710e6551

View File

@@ -260,6 +260,9 @@ module.exports = function (middleware) {
}
res.locals.userData = await accountHelpers.getUserDataByUserSlug(req.params.userslug, req.uid, req.query);
if (!res.locals.userData) {
return next('route');
}
next();
};