Otani Haruhiko пре 6 година
родитељ
комит
d3b77dc288
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/server/routes/apiv3/statistics.js

+ 1 - 1
src/server/routes/apiv3/statistics.js

@@ -53,12 +53,12 @@ module.exports = (crowi) => {
       totalCount: { $sum: 1 },
     });
 
+    // Initialize userCountResults with 0
     const userCountResults = {};
     Object.values(USER_STATUS_MASTER).forEach((status) => {
       userCountResults[status] = 0;
     });
 
-
     userCountGroupByStatus.forEach((userCount) => {
       const key = USER_STATUS_MASTER[userCount._id];
       userCountResults[key] = userCount.totalCount;