Skip to content

Commit

Permalink
Update jsdoc to not point to a deprecated error
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Nov 9, 2022
1 parent c55b6e7 commit 6a23f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/generation/TSClient/jsdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const ${lowerCase(ctx.mapping.model)} = await ${ctx.method}({
findUniqueOrThrow: {
body: (ctx) =>
`Find one ${ctx.singular} that matches the filter or throw
\`NotFoundError\` if no matches were found.
An error such as \`error.code='P2025\` if no matches were found.
@param {${getModelArgName(ctx.model.name, ctx.action)}} args - Arguments to find a ${ctx.singular}
@example
// Get one ${ctx.singular}
Expand Down

0 comments on commit 6a23f82

Please sign in to comment.