File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 44
55use DirectoryTree \ImapEngine \Laravel \Events \MessageReceived ;
66use DirectoryTree \ImapEngine \MessageInterface ;
7+ use Illuminate \Support \Carbon ;
8+ use Illuminate \Support \Facades \Date ;
79use Illuminate \Support \Facades \Event ;
810
911class HandleMessageReceived
@@ -14,7 +16,7 @@ class HandleMessageReceived
1416 public function __construct (
1517 protected WatchMailbox $ command ,
1618 protected int &$ attempts ,
17- protected ?int &$ lastReceivedAt = null ,
19+ protected ?Carbon &$ lastReceivedAt = null ,
1820 ) {}
1921
2022 /**
@@ -28,7 +30,7 @@ public function __invoke(MessageInterface $message): void
2830
2931 $ this ->attempts = 0 ;
3032
31- $ this ->lastReceivedAt = time ();
33+ $ this ->lastReceivedAt = Date:: now ();
3234
3335 Event::dispatch (new MessageReceived ($ message ));
3436 }
You can’t perform that action at this time.
0 commit comments