From 3e39432b33c920d2afe18dbc46631a9ea4e438ce Mon Sep 17 00:00:00 2001 From: Abdelrrahman Elhaddad Date: Fri, 13 Oct 2023 15:59:49 +0300 Subject: [PATCH] prettier --- src/middlewares/security/checkUserOfList.middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,