Skip to content

Commit

Permalink
通知作成時にpackしてnullになったらあとの処理をやめる
Browse files Browse the repository at this point in the history
  • Loading branch information
tai-cha committed Feb 20, 2024
1 parent b09abb8 commit ef65252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/NotificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ export class NotificationService implements OnApplicationShutdown {

const packed = await this.notificationEntityService.pack(notification, notifieeId, {});

if (packed === null) return null;

// Publish notification event
this.globalEventService.publishMainStream(notifieeId, 'notification', packed);

Expand Down

0 comments on commit ef65252

Please sign in to comment.