Skip to content

Commit

Permalink
Merge pull request #131 from AxelDeneu/renewal-mailing-fix
Browse files Browse the repository at this point in the history
Fix renewals sorting being deprecated in sendCall constructor
  • Loading branch information
jjdejong authored Apr 12, 2024
2 parents 6990a52 + bcf13f9 commit f802445
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Mail/sendCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ class sendCall extends Mailable

public function __construct(public $step, $renewals, public $validity_date, public $instruction_date, public $total, public $total_ht, public $subject, public $dest)
{
$this->renewals = collect($renewals)->sortBy(['caseref', 'asc'], ['country', 'asc']);
$this->renewals = collect($renewals)->sortBy([
['caseref', 'asc'],
['country', 'asc']
]);
// Added to ask for receipt confirmation
$this->callbacks[] = (function ($message) {
$message->getHeaders()->addTextHeader('X-Confirm-Reading-To', '<'.Auth::user()->email.'>');
Expand Down

0 comments on commit f802445

Please sign in to comment.