Skip to content

Firefly III: a personal finances manager

Include time in job.

James Colea1f79e58db7d
diff --git a/app/Jobs/MailError.php b/app/Jobs/MailError.php
index ff5cd94a4d..cd58d08478 100644
--- a/app/Jobs/MailError.php
+++ b/app/Jobs/MailError.php
@@ -59,19 +59,11 @@ class MailError extends Job implements ShouldQueue
if ($this->attempts() < 3) {
// mail?
try {
- $email = env('SITE_OWNER');
- $args = [
- 'class' => $this->exception['class'],
- 'errorMessage' => $this->exception['errorMessage'],
- 'stacktrace' => $this->exception['stackTrace'],
- 'file' => $this->exception['file'],
- 'line' => $this->exception['line'],
- 'code' => $this->exception['code'],
- 'loggedIn' => !is_null($this->user->id),
- 'user' => $this->user,
- 'ip' => $this->ip,
-
- ];
+ $email = env('SITE_OWNER');
+ $args = $this->exception;
+ $args['loggedIn'] = !is_null($this->user->id);
+ $args['user'] = $this->user;
+ $args['ip'] = $this->ip;
Mail::send(
['emails.error-html', 'emails.error'], $args,