Skip to content

Commit

Permalink
Merge pull request #313 from rikvdlooi/patch-1
Browse files Browse the repository at this point in the history
Fix loop in before.find when retuning false
  • Loading branch information
StorytellerCZ committed Jul 16, 2024
2 parents 2650c96 + 4da8258 commit 04a76f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion find.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CollectionHooks.defineAdvice('find', function (userId, _super, instance, aspects
if (r === false) abort = true
})

if (abort) return instance.find(undefined)
if (abort) return instance.direct.find(undefined)
}

const after = (cursor) => {
Expand Down

0 comments on commit 04a76f7

Please sign in to comment.