fix: new date comparison

This commit is contained in:
Ben Goldsworthy 2023-05-19 14:39:48 +00:00
parent c6edbdee65
commit 1432de9fe5

View file

@ -169,7 +169,7 @@ class TrackerController extends Controller
Storage::disk('local')->put($tripFileName, json_encode($data));
} else {
$cachedData = json_decode(Storage::disk('local')->get($tripFileName));
if (end($data->checkins)->date !== end($cachedData->checkins)->date) {
if (end($data->trip->checkins)->date !== end($cachedData->trip->checkins)->date) {
Log::debug(
"Cached trip file '" .
$tripFileName .