diff --git a/src/middlewares/security/checkUserOfList.middleware.ts b/src/middlewares/security/checkUserOfList.middleware.ts index 9a604e5..5b86f29 100644 --- a/src/middlewares/security/checkUserOfList.middleware.ts +++ b/src/middlewares/security/checkUserOfList.middleware.ts @@ -7,7 +7,7 @@ import express, { Request, Response, NextFunction, Router } from 'express'; const checkUserOfList: Router = express.Router(); checkUserOfList.use(async (req: Request, res: Response, next: NextFunction) => { const { id: userID } = res.locals.user; - const listId: (number | undefined) = req.query.l_id || req.body.l_id; + const listId: number | undefined = req.query.l_id || req.body.l_id; const found = await prisma.list.findFirst({ where: { l_id: listId,