Kaynağa Gözat

remove unnecessary ref

kaori 4 yıl önce
ebeveyn
işleme
e96e75087c

+ 1 - 6
packages/app/src/server/models/in-app-notification.ts

@@ -81,12 +81,7 @@ const inAppNotificationSchema = new Schema<InAppNotificationDocument, InAppNotif
 });
 inAppNotificationSchema.plugin(mongoosePaginate);
 
-inAppNotificationSchema.virtual('actionUsers',
-  {
-    ref: 'Activity',
-    localField: 'activities',
-    foreignField: 'user',
-  }).get(function(this: InAppNotificationDocument) {
+inAppNotificationSchema.virtual('actionUsers').get(function(this: InAppNotificationDocument) {
 
   const actionUsers = Activity.getActionUsersFromActivities((this.activities as any) as ActivityDocument[]);