通知作成時にpackしてnullになったらあとの処理をやめる
This commit is contained in:
parent
b09abb8c59
commit
ef65252148
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue