From 8a0201fe9c17be0a2402d1f4f1b99cf056e2303c Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 3 Apr 2023 20:14:19 +0900 Subject: [PATCH] add notes --- 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 48f2c6584..b984f3c77 100644 --- a/packages/backend/src/core/NotificationService.ts +++ b/packages/backend/src/core/NotificationService.ts @@ -96,6 +96,7 @@ export class NotificationService implements OnApplicationShutdown { const profile = await this.userProfilesRepository.findOneBy({ userId: notifieeId }); + // TODO: Cache const isMuted = profile?.mutingNotificationTypes.includes(type); // Create notification @@ -122,6 +123,7 @@ export class NotificationService implements OnApplicationShutdown { if (fresh.isRead) return; //#region ただしミュートしているユーザーからの通知なら無視 + // TODO: Cache const mutings = await this.mutingsRepository.findBy({ muterId: notifieeId, });