use max.min

v1.18.x
Baris Usakli 6 years ago
parent 2ee743d65c
commit 2c5157aeaa

@ -42,7 +42,7 @@ function searchInContent(data, callback) {
var matchCount = 0; var matchCount = 0;
var pids; var pids;
var metadata; var metadata;
var itemsPerPage = data.itemsPerPage || 10; var itemsPerPage = Math.min(data.itemsPerPage || 10, 100);
async.waterfall([ async.waterfall([
function (next) { function (next) {
async.parallel({ async.parallel({

Loading…
Cancel
Save