mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-30 14:09:33 +02:00
fix: fix user connection
This commit is contained in:
1 parent
83a9505a11
commit
8c8f8dbd90
1 file changed
+1
-1
@@ -133,7 +133,7 @@ export async function getUser(req: express.Request) {
|
||||
if (!user) {
|
||||
notConnected();
|
||||
}
|
||||
const model = await UserModel.findById(user.id);
|
||||
const model = await UserModel.findById(user._id);
|
||||
if (!model) {
|
||||
notConnected();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user