Skip to content

Commit

Permalink
Fixed payment order delete notification email
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtronics committed Nov 17, 2024
1 parent 613fd88 commit 58c02ea
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ public function __invoke(PaymentOrderDeletedNotification $message): void
]);

//Send the email to the FSR officers and the HHV/FSB
$email_addresses = array_merge(
$paymentOrder->getDepartment()->getEmailHhv(),
$paymentOrder->getDepartment()->getEmailTreasurer(),
[$reply_to_email]
);
$email_addresses = $paymentOrder->getDepartment()?->getConfirmers()->map(
fn($confirmer) => $confirmer->getEmail()
)->toArray() ?? [];
$email_addresses[] = $reply_to_email;

$email->addBcc(...$email_addresses);

Expand Down

0 comments on commit 58c02ea

Please sign in to comment.