通知作成時にpackしてnullになったらあとの処理をやめる
This commit is contained in:
parent
b09abb8c59
commit
ef65252148
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue