mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Use default entries count instead of distributed number literals
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user