Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default entries count instead of distributed number literals #5273

Merged
merged 1 commit into from
Dec 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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