فهرست منبع

added a comment

kaori 4 سال پیش
والد
کامیت
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);