Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Sep 9, 2024
1 parent 34336d9 commit 6671873
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Drivers/MailDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
}
Expand Down Expand Up @@ -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,
]);
}
}

0 comments on commit 6671873

Please sign in to comment.