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 pids;
var metadata;
var itemsPerPage = data.itemsPerPage || 10;
var itemsPerPage = Math.min(data.itemsPerPage || 10, 100);
async.waterfall([
function (next) {
async.parallel({

Loading…
Cancel
Save