diff --git a/src/routes/authRoutes.js b/src/routes/authRoutes.js index 0418086..e20537a 100644 --- a/src/routes/authRoutes.js +++ b/src/routes/authRoutes.js @@ -42,7 +42,7 @@ router.post('/login', async (req, res) => { const { username, password } = req.body try { - const user = await prisma.user.findUnique({ + const user = await prisma.users.findUnique({ where: { username: username }