Skip to content

Commit

Permalink
check ownership shirt fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
singharaj-usai committed Oct 18, 2024
1 parent 6183f90 commit b16b49c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/functions/api/routes/shirt.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ router.get('/check-ownership/:id', authenticateToken, async (req, res) => {
return res.status(404).json({ error: 'Shirt not found' });
}

const user = await User.findById(req.user.userId);
const user = await User.findOne({ userId: req.user.userId });
if (!user) {
return res.status(404).json({ error: 'User not found' });
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b16b49c

Please sign in to comment.