diff --git a/src/Drivers/MailDriver.php b/src/Drivers/MailDriver.php index 3534a3a..c9292c6 100644 --- a/src/Drivers/MailDriver.php +++ b/src/Drivers/MailDriver.php @@ -81,7 +81,7 @@ public function logMailEvent($payload): void public function accepted(Mail $mail, string $timestamp): void { $mail->update([ - 'last_opened_at' => $timestamp, + 'accepted_at' => $timestamp, 'opens' => $mail->opens + 1, ]); } @@ -133,8 +133,7 @@ public function softBounced(Mail $mail, string $timestamp): void public function unsubscribed(Mail $mail, string $timestamp): void { $mail->update([ - 'last_opened_at' => $timestamp, - 'opens' => $mail->opens + 1, + 'unsubscribed_at' => $timestamp, ]); } }