diff --git a/src/routes/route-utils.ts b/src/routes/route-utils.ts index c8ee049..795caa6 100644 --- a/src/routes/route-utils.ts +++ b/src/routes/route-utils.ts @@ -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(); }