fix: fix user connection

This commit is contained in:
tdurieux
2023-02-16 08:27:03 +01:00
parent 83a9505a11
commit 8c8f8dbd90

View File

@@ -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();
}