Various changes.

This commit is contained in:
James Cole 2021-12-24 10:46:41 +01:00
parent 45fbf83971
commit 47870cd50c
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5
2 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ class UpdatedGroupEventHandler
if (1 === $group->transactionJournals->count()) {
return;
}
Log::debug(sprintf('Correct inconsistent accounts in group #%d', $group->id));
Log::debug(sprintf('Validating inconsistent accounts in group #%d', $group->id));
// first journal:
/** @var TransactionJournal $first */
$first = $group->transactionJournals()

View File

@ -68,13 +68,13 @@ class MailError extends Job implements ShouldQueue
*/
public function handle()
{
$email = config('firefly.site_owner');
$email = (string) config('firefly.site_owner');
$args = $this->exception;
$args['loggedIn'] = $this->userData['id'] > 0;
$args['user'] = $this->userData;
$args['ip'] = $this->ipAddress;
$args['token'] = config('firefly.ipinfo_token');
if ($this->attempts() < 3) {
if ($this->attempts() < 3 && strlen($email) > 0) {
try {
Mail::send(
['emails.error-html', 'emails.error-text'],