Skip to content

Commit

Permalink
fix: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chertik77 committed Jul 16, 2024
1 parent 2ff5801 commit a1d95a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const boardController = {
const { id: owner } = req.user
const { boardId } = req.params

const board = await Board.findOne({ _id: boardId, owner: req.user.id })
const board = await Board.findOne({ _id: boardId, owner })

if (!board) {
return next(createHttpError(404, `Board not found`))
Expand Down

0 comments on commit a1d95a2

Please sign in to comment.