Sfoglia il codice sorgente

fix Activity schema error

kaori 4 anni fa
parent
commit
39d93583ca

+ 1 - 1
packages/app/src/server/models/activity.ts

@@ -35,7 +35,7 @@ module.exports = function(crowi: Crowi) {
     user: {
       type: Schema.Types.ObjectId,
       ref: 'User',
-      index: true,
+      // index: true,
       require: true,
     },
     targetModel: {

+ 2 - 2
packages/app/src/server/service/in-app-notification.ts

@@ -84,8 +84,8 @@ export default class InAppNotificationService {
           { path: 'target' },
           { path: 'activities', populate: { path: 'user' } },
         ],
-      });
-
+      },
+    );
 
     return paginatedInAppNotificationResult;
   }