Fix email digests

This commit is contained in:
Ben Goldsworthy 2022-12-03 19:17:48 +00:00
parent b0908035a7
commit 159f8e98d4

View file

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