浏览代码

fix Activity schema error

kaori 4 年之前
父节点
当前提交
39d93583ca
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      packages/app/src/server/models/activity.ts
  2. 2 2
      packages/app/src/server/service/in-app-notification.ts

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