fix
This commit is contained in:
1 parent
e794460b94
commit
a05321e8af
1 file changed
+1
-1
+1
-1
@@ -9,7 +9,7 @@ export default async (req, res) => {
|
|||||||
return res.status(401).json({ message: 'Unauthorized' });
|
return res.status(401).json({ message: 'Unauthorized' });
|
||||||
}
|
}
|
||||||
|
|
||||||
const user = await User.findOne({ clerkId: userId });
|
const user = await User.findOne({ id: userId });
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
return res.status(404).json({ message: 'User not found' });
|
return res.status(404).json({ message: 'User not found' });
|
||||||
|
|||||||
Reference in new issue
Block a user