Verified Commit e7782c8e authored by Korko's avatar Korko
Browse files

Fix default version

parent 924b57a0
Pipeline #377152 failed with stages
in 3 minutes and 2 seconds
......@@ -27,7 +27,7 @@ class TrackedMailable extends Mailable
$this->bounceReturnPath = str_replace('*', self::BOUNCE.'-'.$mail->hash.'-'.$mail->version, config('mail.return_path'));
$this->confirmReturnPath = str_replace('*', self::CONFIRM.'-'.$mail->hash.'-'.$mail->version, config('mail.return_path'));
$this->trackedPixel = URL::signedRoute('pixel', [
'mail' => $mail,
'mail' => $mail->hash,
'version' => $mail->version,
]);
}
......@@ -62,4 +62,4 @@ class TrackedMailable extends Mailable
parent::send($mailer);
}
}
\ No newline at end of file
}
......@@ -26,6 +26,7 @@ class Mail extends Model
*/
protected $attributes = [
'delivery_status' => self::CREATED,
'version' => 0,
];
public const CREATED = 'created';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment