Skip to content

Commit

Permalink
Fix the merging of query arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
s1owjke committed Dec 3, 2024
1 parent 5a67389 commit dbbace0
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": "prisma-rls",
"version": "0.4.0",
"version": "0.4.1",
"description": "Prisma client extension for row-level security on any database",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const createRlsExtension = ({ dmmf, permissionsConfig, context, authoriza
modelResolver.resolveWhere(modelPermissions.read, modelName, args.where),
]);

const result = await query({ ...args, ...selectAndInclude.value, where });
const result = await query({ ...args, ...selectAndInclude, where });

if (checkRequiredBelongsTo) {
return modelResolver.performRelationProcessing(getTransactionClient(prismaClient, params), result, relationsMetadata);
Expand Down

0 comments on commit dbbace0

Please sign in to comment.