From ef6525214888f5d744bc9c6cc537c5c380215bfa Mon Sep 17 00:00:00 2001 From: taichan Date: Tue, 20 Feb 2024 14:48:49 +0900 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E4=BD=9C=E6=88=90=E6=99=82?= =?UTF-8?q?=E3=81=ABpack=E3=81=97=E3=81=A6null=E3=81=AB=E3=81=AA=E3=81=A3?= =?UTF-8?q?=E3=81=9F=E3=82=89=E3=81=82=E3=81=A8=E3=81=AE=E5=87=A6=E7=90=86?= =?UTF-8?q?=E3=82=92=E3=82=84=E3=82=81=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/NotificationService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/core/NotificationService.ts b/packages/backend/src/core/NotificationService.ts index ee16193579fe..54aae4b47e1c 100644 --- a/packages/backend/src/core/NotificationService.ts +++ b/packages/backend/src/core/NotificationService.ts @@ -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);