通知作成時にpackしてnullになったらあとの処理をやめる

This commit is contained in:
taichan 2024-02-20 14:48:49 +09:00
parent b09abb8c59
commit ef65252148
No known key found for this signature in database
GPG Key ID: CCE28623AFA24E9C
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,8 @@ export class NotificationService implements OnApplicationShutdown {
const packed = await this.notificationEntityService.pack(notification, notifieeId, {}); const packed = await this.notificationEntityService.pack(notification, notifieeId, {});
if (packed === null) return null;
// Publish notification event // Publish notification event
this.globalEventService.publishMainStream(notifieeId, 'notification', packed); this.globalEventService.publishMainStream(notifieeId, 'notification', packed);