From 09a9484e4ffc8009864a6b5d0f6e55f9f1e1da1b Mon Sep 17 00:00:00 2001 From: taichan Date: Tue, 20 Feb 2024 01:22:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20notifierId=E3=81=8C=E3=81=AA=E3=81=84?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E3=81=8C=E6=B6=88=E3=81=88=E3=81=A6=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=86=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/endpoints/i/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/i/notifications.ts b/packages/backend/src/server/api/endpoints/i/notifications.ts index 3a2bc819f9..632b3eeffb 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications.ts @@ -119,7 +119,7 @@ export default class extends Endpoint { // eslint- ]); notifications = (await Promise.all(notifications.map(async (notification): Promise => { - if (!('notifierId' in notification)) return null; + if (!('notifierId' in notification)) return notification; if (userIdsWhoMeMuting.has(notification.notifierId)) return null; const notifier = await this.usersRepository.findOneBy({ id: notification.notifierId });