Skip to content

Commit

Permalink
BUG: don't fail on empty where constraints (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaip authored Oct 31, 2022
1 parent ab89d0c commit 07aeda9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joindeed/prisma-auth",
"version": "1.2.0",
"version": "1.2.1",
"description": "Declarative Prisma Authorization layer",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/makeListConstraintMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const makeListConstraintMiddleware: (config: Configuration) => Middleware
options,
context
)
selectValue = { where }
selectValue = where ? { where } : {}
// Get the value for the root return type of the resolver
} else {
selectValue = select.value
Expand Down

0 comments on commit 07aeda9

Please sign in to comment.