Skip to content

Commit

Permalink
Merge pull request #13 from coderGtm/patch-1
Browse files Browse the repository at this point in the history
made query case-insesnsitive (fixes #12)
  • Loading branch information
jalaym825 authored Oct 15, 2024
2 parents 85576a4 + b1f63f3 commit 95528d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/api/users/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ const getUserStats = async (req, res) => {

try {
// Get user and their PRs
const user = await prisma.users.findUnique({
where: { githubId },
const user = await prisma.users.findFirst({
where: { githubId: {
equals: githubId,
mode: 'insensitive'
}
},
include: {
prs: {
orderBy: {
Expand Down

0 comments on commit 95528d8

Please sign in to comment.