Procházet zdrojové kódy

pass targetUser to the front side

Shun Miyazawa před 4 roky
rodič
revize
393946b4e7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/app/src/server/service/comment.ts

+ 1 - 1
packages/app/src/server/service/comment.ts

@@ -58,6 +58,7 @@ class CommentService {
         let targetUsers: Types.ObjectId[] = [];
         targetUsers = await updatedActivity.getNotificationTargetUsers();
 
+        await this.inAppNotificationService.emitSocketIo(targetUsers);
         await this.inAppNotificationService.upsertByActivity(targetUsers, updatedActivity);
       }
       catch (err) {
@@ -66,7 +67,6 @@ class CommentService {
 
       // TODO: 79713
       // const { inAppNotificationService } = this.crowi;
-      // inAppNotificationService.emitSocketIo(userId, pageId);
     });
 
     // remove