Otani Haruhiko 6 лет назад
Родитель
Сommit
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;