Fix email
This commit is contained in:
parent
3f1fccdf15
commit
f126ff891e
|
@ -15,7 +15,7 @@ class EmailHook extends Manager
|
|||
|
||||
public function needsExecution()
|
||||
{
|
||||
$diff = date('Y-m-d', strtotime('-4 hours'));
|
||||
$diff = date('Y-m-d H:i:s', strtotime('-4 hours'));
|
||||
$failed = function ($query) use ($diff) {
|
||||
$query->whereDate('failed_at', '<', $diff)
|
||||
->orWhereNull('failed_at');
|
||||
|
@ -30,7 +30,7 @@ class EmailHook extends Manager
|
|||
|
||||
public function execute()
|
||||
{
|
||||
$diff = date('Y-m-d', strtotime('-4 hours'));
|
||||
$diff = date('Y-m-d H:i:s', strtotime('-4 hours'));
|
||||
$failed = function ($query) use ($diff) {
|
||||
$query->whereDate('failed_at', '<', $diff)
|
||||
->orWhereNull('failed_at');
|
||||
|
|
|
@ -93,7 +93,7 @@ class EmailNotification extends PHPMailer implements NotificationInterface
|
|||
// Destinatari
|
||||
$receivers = $mail->receivers;
|
||||
foreach ($receivers as $receiver) {
|
||||
$this->addReceiver($receiver['email'], $receiver['type']);
|
||||
$this->addReceiver($receiver['address'], $receiver['type']);
|
||||
}
|
||||
|
||||
// Allegati
|
||||
|
|
Loading…
Reference in New Issue