Fix email digests by removing (unused) location property

This commit is contained in:
Ben Goldsworthy 2023-01-21 20:01:11 +00:00
parent e81460781b
commit 3144511104
2 changed files with 1 additions and 9 deletions

View File

@ -232,7 +232,7 @@ class TrackerController extends Controller
array_push($points, (object)[
'id' => $id++,
'latitude' => $lat/100000,
'longitude'=> $lng/100000
'longitude' => $lng/100000
]);
}

View File

@ -64,14 +64,6 @@ class Digest extends Mailable
default:
}
$this->locations = array_filter(
$trip->locations,
function ($elem) use ($cutoffDateTime) {
$elemDateTime = new DateTime($elem->created_at);
return $elemDateTime > $cutoffDateTime;
}
);
$this->checkinsList = array_filter(
$trip->checkins,
function ($elem) use ($cutoffDateTime) {