2
0
Эх сурвалжийг харах

create notification first

Shun Miyazawa 4 жил өмнө
parent
commit
8084018be4

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