diff --git a/app/Mail/Digest.php b/app/Mail/Digest.php index 9ba0a5c..1e40f0c 100644 --- a/app/Mail/Digest.php +++ b/app/Mail/Digest.php @@ -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;