Procházet zdrojové kódy

create notification first

Shun Miyazawa před 4 roky
rodič
revize
8084018be4
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

@@ -89,8 +89,8 @@ class CommentService {
     targetUsers = await activity.getNotificationTargetUsers();
 
     // Create and send notifications
-    await this.inAppNotificationService.emitSocketIo(targetUsers);
     await this.inAppNotificationService.upsertByActivity(targetUsers, activity);
+    await this.inAppNotificationService.emitSocketIo(targetUsers);
   };
 
 }