Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-elhaddad committed Oct 13, 2023
1 parent cdc8216 commit 3e39432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/security/checkUserOfList.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3e39432

Please sign in to comment.