diff --git a/backend/index.js b/backend/index.js index aa47ab9..89483d9 100644 --- a/backend/index.js +++ b/backend/index.js @@ -96,7 +96,8 @@ function addSystemClients(req, res, next) { } function addTotalClients(req, res, next) { - req.totalClients = clients.length; + + req.totalClients = Object.keys(clients).length; next(); }