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(