Compare commits

..

2 commits

Author SHA1 Message Date
b586687174 Change checkin ID filtering 2022-12-12 18:25:11 -06:00
6392989456 Ignore Laravel file 2022-12-12 18:24:39 -06:00
2 changed files with 7 additions and 8 deletions

View file

@ -47,20 +47,18 @@ class TrackerController extends Controller
if ($fromCheckin) {
$tripData->checkins = array_filter(
$tripData->checkins,
function ($key) use ($fromCheckin) {
return $key >= $fromCheckin;
},
ARRAY_FILTER_USE_KEY
function ($checkin) use ($fromCheckin) {
return $checkin->id >= $fromCheckin;
}
);
}
if ($toCheckin) {
$tripData->checkins = array_filter(
$tripData->checkins,
function ($key) use ($toCheckin) {
return $key <= $toCheckin;
},
ARRAY_FILTER_USE_KEY
function ($checkin) use ($toCheckin) {
return $checkin->id <= $toCheckin;
}
);
}

View file

@ -13,6 +13,7 @@
<file>routes</file>
<file>tests</file>
<exclude-pattern>config/broadcasting.php</exclude-pattern>
<exclude-pattern>bootstrap/cache/*</exclude-pattern>
<exclude-pattern>bootstrap/autoload.php</exclude-pattern>
<exclude-pattern>*/migrations/*</exclude-pattern>