Shun Miyazawa 4 년 전
부모
커밋
e1dac58a57
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/app/src/server/service/activity.ts

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

@@ -37,7 +37,7 @@ class ActivityService {
 
     const shouldNotification = activity != null && target != null && (AllSupportedActionToNotifiedType as ReadonlyArray<string>).includes(activity.action);
     if (shouldNotification) {
-      const notificationTargetUsers = await activity?.getNotificationTargetUsers();
+      const notificationTargetUsers = await activity.getNotificationTargetUsers();
       const snapshotForInAppNotification = stringifySnapshot(target);
       await this.inAppNotificationService.upsertByActivity(notificationTargetUsers, activity, snapshotForInAppNotification);
       await this.inAppNotificationService.emitSocketIo(notificationTargetUsers);