summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-25 18:34:25 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-25 18:34:25 +0900
commitfc576ebc64da1df3f4913a62fea094f358a6f892 (patch)
treefc78417ff3a8120b2a939fa02544337e11398e51
parentenhance(frontend): refactor and improve ux (diff)
downloadsharkey-fc576ebc64da1df3f4913a62fea094f358a6f892.tar.gz
sharkey-fc576ebc64da1df3f4913a62fea094f358a6f892.tar.bz2
sharkey-fc576ebc64da1df3f4913a62fea094f358a6f892.zip
fix(backend): 承認したチャットルームへの招待の通知が存在するとエラーになる問題を修正
-rw-r--r--packages/backend/src/core/entities/NotificationEntityService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/entities/NotificationEntityService.ts b/packages/backend/src/core/entities/NotificationEntityService.ts
index d8b947839f..e91fb9eb51 100644
--- a/packages/backend/src/core/entities/NotificationEntityService.ts
+++ b/packages/backend/src/core/entities/NotificationEntityService.ts
@@ -146,7 +146,7 @@ export class NotificationEntityService implements OnModuleInit {
}
const needsChatRoomInvitation = notification.type === 'chatRoomInvitationReceived';
- const chatRoomInvitation = needsChatRoomInvitation ? await this.chatEntityService.packRoomInvitation(notification.invitationId, { id: meId }) : undefined;
+ const chatRoomInvitation = needsChatRoomInvitation ? await this.chatEntityService.packRoomInvitation(notification.invitationId, { id: meId }).catch(() => null) : undefined;
// if the invitation has been deleted, don't show this notification
if (needsChatRoomInvitation && !chatRoomInvitation) {
return null;