diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-25 18:34:25 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-25 18:34:25 +0900 |
| commit | fc576ebc64da1df3f4913a62fea094f358a6f892 (patch) | |
| tree | fc78417ff3a8120b2a939fa02544337e11398e51 /packages/backend/src/core/entities | |
| parent | enhance(frontend): refactor and improve ux (diff) | |
| download | sharkey-fc576ebc64da1df3f4913a62fea094f358a6f892.tar.gz sharkey-fc576ebc64da1df3f4913a62fea094f358a6f892.tar.bz2 sharkey-fc576ebc64da1df3f4913a62fea094f358a6f892.zip | |
fix(backend): 承認したチャットルームへの招待の通知が存在するとエラーになる問題を修正
Diffstat (limited to 'packages/backend/src/core/entities')
| -rw-r--r-- | packages/backend/src/core/entities/NotificationEntityService.ts | 2 |
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; |