Skip to content

fix(cover-letter): use findFirst for id+userId filter in getCoverLett… - #23

Open
Arkrly wants to merge 2 commits into
Riturajkumarsingh:mainfrom
Arkrly:fix/get-cover-letter-findunique-issue-20
Open

fix(cover-letter): use findFirst for id+userId filter in getCoverLett…#23
Arkrly wants to merge 2 commits into
Riturajkumarsingh:mainfrom
Arkrly:fix/get-cover-letter-findunique-issue-20

Conversation

@Arkrly

@Arkrly Arkrly commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

-return await db.coverLetter.findUnique({

  • where: { id, userId: user.id },
    -});
    +return await db.coverLetter.findFirst({
  • where: { id, userId: user.id },
    +});

@vercel

vercel Bot commented Aug 20, 2025

Copy link
Copy Markdown

@Arkrly is attempting to deploy a commit to the Rituraj kumar singh 's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants