From 4da825895be4a71357d871c021e162d56a97714a Mon Sep 17 00:00:00 2001 From: rikvdlooi Date: Sat, 13 Jul 2024 23:49:38 +0200 Subject: [PATCH] Update find.js Fix loop when returning `false` from before.find --- find.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find.js b/find.js index 2cded55..59b20da 100644 --- a/find.js +++ b/find.js @@ -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) => {