From 159f8e98d46a36753f7a754f13189cc1e6e7d2ce Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Sat, 3 Dec 2022 19:17:48 +0000 Subject: [PATCH] Fix email digests --- app/Mail/Digest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;