From 7145d31062c34d7089ed6068dede580561ae7dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dvar=20Oddsson?= Date: Tue, 14 May 2024 12:49:43 +0000 Subject: [PATCH] Add defender to sendModifiedNotifications --- .../app/modules/notification/notification.service.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/judicial-system/backend/src/app/modules/notification/notification.service.ts b/apps/judicial-system/backend/src/app/modules/notification/notification.service.ts index 3b843d1375d6..df71bae7172a 100644 --- a/apps/judicial-system/backend/src/app/modules/notification/notification.service.ts +++ b/apps/judicial-system/backend/src/app/modules/notification/notification.service.ts @@ -1281,6 +1281,17 @@ export class NotificationService { ) } + if (theCase.defenderEmail) { + promises.push( + this.sendEmail( + subject, + html, + theCase.defenderName, + theCase.defenderEmail, + ), + ) + } + const recipients = await Promise.all(promises) return this.recordNotification(