mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-29 20:19:28 +02:00
fix: fix user connection
This commit is contained in:
@@ -133,7 +133,7 @@ export async function getUser(req: express.Request) {
|
|||||||
if (!user) {
|
if (!user) {
|
||||||
notConnected();
|
notConnected();
|
||||||
}
|
}
|
||||||
const model = await UserModel.findById(user.id);
|
const model = await UserModel.findById(user._id);
|
||||||
if (!model) {
|
if (!model) {
|
||||||
notConnected();
|
notConnected();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user