Skip to content

Commit

Permalink
Use default entries count instead of distributed number literals (#5273)
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkaharo authored Dec 6, 2019
2 parents 3170345 + c4f5ffa commit 25a6345
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/api/entries/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 25a6345

Please sign in to comment.