kaori 4 лет назад
Родитель
Сommit
87921ee4b1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/server/routes/apiv3/in-app-notification.ts

+ 1 - 1
packages/app/src/server/routes/apiv3/in-app-notification.ts

@@ -43,7 +43,7 @@ module.exports = (crowi) => {
       if (doc.user != null && doc.user instanceof User) {
         doc.user = serializeUserSecurely(doc.user);
       }
-
+      // To add a new property into mongoose doc, need to change the format of doc to an object
       docObj = doc.toObject();
       const actionUsersNew = getActionUsersFromActivities(doc.activities);