Fix email digests

This commit is contained in:
Ben Goldsworthy 2022-12-03 19:17:48 +00:00
parent b0908035a7
commit 159f8e98d4
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Digest extends Mailable
);
$this->checkinsList = array_filter(
$trip->checkinsList,
$trip->checkins,
function ($elem) use ($cutoffDateTime) {
$elemDateTime = new DateTime($elem->created_at);
return $elemDateTime > $cutoffDateTime;