From 667187325bed998e1d60925fd4c089c5d8dda66f Mon Sep 17 00:00:00 2001 From: Mark van Eijk Date: Mon, 9 Sep 2024 11:50:03 +0200 Subject: [PATCH] wip --- src/Drivers/MailDriver.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, ]); } }