From bb449c3715c30fdb8fa637f7ea587d1f44d86aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Kopp?= Date: Thu, 2 Dec 2021 14:59:38 +0100 Subject: [PATCH] update minimum default value #36 --- app/controllers/dataController.js | 2 +- app/routes/adminRoutes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/dataController.js b/app/controllers/dataController.js index c09c3b7..3089827 100644 --- a/app/controllers/dataController.js +++ b/app/controllers/dataController.js @@ -82,7 +82,7 @@ exports.getTopIPs = ( userId, period_end = (new Date().getFullYear() + 1)+'-01-01 00:00:00', measure='units', level='month', - min_exist = 0 + min_exist = 8000 ) => { logger.trace(); return new promise((resolve, reject) => { diff --git a/app/routes/adminRoutes.js b/app/routes/adminRoutes.js index 6f5e293..0a63c62 100644 --- a/app/routes/adminRoutes.js +++ b/app/routes/adminRoutes.js @@ -136,7 +136,7 @@ router.get('/admin/ips', function (req, res, next) { level: req.query.level || 'month', start: req.query.start || (new Date().getFullYear())+'-01-01', end: req.query.end || (new Date().getFullYear()+1)+'-01-01', - min_exist: req.query.min_exist || 0 + min_exist: req.query.min_exist || 8000 }; var table_params = [];