This commit is contained in:
@@ -42,7 +42,7 @@ router.post('/login', async (req, res) => {
|
|||||||
const { username, password } = req.body
|
const { username, password } = req.body
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const user = await prisma.user.findUnique({
|
const user = await prisma.users.findUnique({
|
||||||
where: {
|
where: {
|
||||||
username: username
|
username: username
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user