From 9be582e55325ff484c3c49baa155a4deb09450af Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 17 Oct 2017 18:37:05 -1000 Subject: Fix limit on backlinks queries --- lib/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/app.js') diff --git a/lib/app.js b/lib/app.js index 3374f41..bcbc118 100644 --- a/lib/app.js +++ b/lib/app.js @@ -565,7 +565,7 @@ App.prototype.filter = function (plugin, opts, filter) { plugin.read({ index: index, reverse: opts.reverse, - limit: limit && (limit + 1), + limit: limit ? (limit + 1) : undefined, query: [{$filter: u.mergeOpts(filter, { timestamp: { $gte: opts.gt, -- cgit v1.2.3