aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-17 18:37:05 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-10-17 18:37:05 -1000
commit9be582e55325ff484c3c49baa155a4deb09450af (patch)
tree5c9a9399e477ff74f34a5fde8527cc971acdadad /lib
parent6d54ac255cb2f96433e88d9c2482074749bd4eea (diff)
downloadpatchfoo-9be582e55325ff484c3c49baa155a4deb09450af.tar.gz
patchfoo-9be582e55325ff484c3c49baa155a4deb09450af.zip
Fix limit on backlinks queries
Diffstat (limited to 'lib')
-rw-r--r--lib/app.js2
1 files changed, 1 insertions, 1 deletions
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,