diff --git a/api/utils/verifyToken.js b/api/utils/verifyToken.js index 57e3ee56ef..706410c49b 100644 --- a/api/utils/verifyToken.js +++ b/api/utils/verifyToken.js @@ -15,7 +15,7 @@ export const verifyToken = (req, res, next) => { }; export const verifyUser = (req, res, next) => { - verifyToken(req, res, next, () => { + verifyToken(req, res, () => { if (req.user.id === req.params.id || req.user.isAdmin) { next(); } else { @@ -25,7 +25,7 @@ export const verifyUser = (req, res, next) => { }; export const verifyAdmin = (req, res, next) => { - verifyToken(req, res, next, () => { + verifyToken(req, res, () => { if (req.user.isAdmin) { next(); } else { diff --git a/client/src/pages/list/List.jsx b/client/src/pages/list/List.jsx index c55aac5b9a..178b26e9c9 100644 --- a/client/src/pages/list/List.jsx +++ b/client/src/pages/list/List.jsx @@ -35,7 +35,7 @@ const List = () => {

Search

- + setDestination(event.target.value)}/>