mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
fix: fix user connection
This commit is contained in:
@@ -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