Use default entries count instead of distributed number literals

This commit is contained in:
Jakob Sandberg
2019-12-05 14:58:58 -08:00
parent 4342eaaef0
commit c4f5ffaf8c
+3 -3
View File
@@ -408,7 +408,7 @@ function configure (app, wares, ctx, env) {
// If "?count=" is present, use that number to decided how many to return.
if (!query.count) {
query.count = 10;
query.count = consts.ENTRIES_DEFAULT_COUNT;
}
// bias towards entries, but allow expressing preference of storage layer
var storage = req.params.echo || 'entries';
@@ -434,7 +434,7 @@ function configure (app, wares, ctx, env) {
// If "?count=" is present, use that number to decided how many to return.
if (!query.count) {
query.count = 10;
query.count = consts.ENTRIES_DEFAULT_COUNT;
}
// bias to entries, but allow expressing a preference
@@ -476,7 +476,7 @@ function configure (app, wares, ctx, env) {
}
var query = req.query;
if (!query.count) {
query.count = 10
query.count = consts.ENTRIES_DEFAULT_COUNT;
}
// remove using the query
req.model.remove(query, function(err, stat) {