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'