Răsfoiți Sursa

added a comment

kaori 4 ani în urmă
părinte
comite
87921ee4b1

+ 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);