From b1f63f319160ac9699779bce187a7e1b6d2ff0b4 Mon Sep 17 00:00:00 2001 From: Jalay Movaliya <76902806+jalaym825@users.noreply.github.com> Date: Tue, 15 Oct 2024 20:01:44 +0530 Subject: [PATCH] Update controller.js --- src/api/users/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/users/controller.js b/src/api/users/controller.js index be0c003..f821ffe 100644 --- a/src/api/users/controller.js +++ b/src/api/users/controller.js @@ -9,7 +9,7 @@ const getUserStats = async (req, res) => { try { // Get user and their PRs - const user = await prisma.users.findUnique({ + const user = await prisma.users.findFirst({ where: { githubId: { equals: githubId, mode: 'insensitive'