Skip to content

Commit

Permalink
fix: Fix: Handle FindUniq/First..OrThrowArgs name
Browse files Browse the repository at this point in the history
  • Loading branch information
unlight committed Nov 20, 2022
1 parent d076fe9 commit 0419d0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helpers/get-model-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ const endsWithKeywords = [
];

const middleKeywords = [
['FindFirst', 'OrThrowArgs'],
['FindUnique', 'OrThrowArgs'],
['Aggregate', 'Args'],
['CreateOne', 'Args'],
['DeleteMany', 'Args'],
Expand Down

0 comments on commit 0419d0d

Please sign in to comment.