1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for ninja mailer

This commit is contained in:
David Bomba 2023-01-29 18:29:35 +11:00
parent 60472bf151
commit 9c66c3b741
2 changed files with 9 additions and 6 deletions

View File

@ -207,11 +207,11 @@ class NinjaMailerJob implements ShouldQueue
}
}
/* Releasing immediately does not add in the backoff */
$this->release($this->backoff()[$this->attempts()-1]);
}
/*Clean up mailers*/
$this->cleanUpMailers();
@ -649,7 +649,8 @@ class NinjaMailerJob implements ShouldQueue
public function failed($exception = null)
{
if($exception)
nlog($exception->getMessage());
}
}

View File

@ -141,10 +141,12 @@ class EmailMailer implements ShouldQueue
$this->release($this->backoff()[$this->attempts()-1]);
$message = null;
$this->cleanUpMailers();
}
$this->cleanUpMailers();
}
/**