From f31efb28dcfa742f3a21782d864fd795d29251c5 Mon Sep 17 00:00:00 2001 From: Ville Lahdenvuo Date: Wed, 3 Jan 2018 18:04:21 +0100 Subject: [PATCH] fix: Remove fetching:collection listener We already hook into the Collection fetching event so that causes the query to be modified twice in some cases. --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 90e431c..4fa5ccf 100644 --- a/index.js +++ b/index.js @@ -75,7 +75,6 @@ module.exports = (bookshelf, settings) => { } this.on('fetching', skipDeleted.bind(this)) - this.on('fetching:collection', skipDeleted.bind(this)) }, /**