diff --git a/src/app/api/user.js b/src/app/api/user.js index 025c4d0..29ee285 100644 --- a/src/app/api/user.js +++ b/src/app/api/user.js @@ -9,7 +9,7 @@ export default async (req, res) => { return res.status(401).json({ message: 'Unauthorized' }); } - const user = await User.findOne({ clerkId: userId }); + const user = await User.findOne({ id: userId }); if (!user) { return res.status(404).json({ message: 'User not found' });