Node.js based forum software built for the modern web
refactor: only send required fields in query
Barış Soner Uşaklı76caa92c0b6b
diff --git a/src/controllers/admin/dashboard.js b/src/controllers/admin/dashboard.jsindex a8930e35f4..405a239aaf 100644--- a/src/controllers/admin/dashboard.js+++ b/src/controllers/admin/dashboard.js@@ -275,7 +275,7 @@ dashboardController.getLogins = async (req, res) => {res.render('admin/dashboard/logins', {set: 'logins',- query: req.query,+ query: _.pick(req.query, ['units', 'until', 'count']),stats,summary,sessions,@@ -303,7 +303,7 @@ dashboardController.getUsers = async (req, res) => {res.render('admin/dashboard/users', {set: 'registrations',- query: req.query,+ query: _.pick(req.query, ['units', 'until', 'count']),stats,summary,users,@@ -330,7 +330,7 @@ dashboardController.getTopics = async (req, res) => {res.render('admin/dashboard/topics', {set: 'topics',- query: req.query,+ query: _.pick(req.query, ['units', 'until', 'count']),stats,summary,topics: topicData,