aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,