Compare commits
2 commits
064cf0642c
...
40134331b5
Author | SHA1 | Date | |
---|---|---|---|
40134331b5 | |||
74b7df62b7 |
2 changed files with 4 additions and 3 deletions
|
@ -26,9 +26,10 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main id="pastTripsList">
|
<main id="pastTripsList">
|
||||||
<ul>
|
<ol>
|
||||||
|
<li><a href="/x8gkdo56o7k3eyp3w2ql">Monkey Run Scotland 2022</a></li>
|
||||||
<li><a href="/47xj8go928ql9mq3r20p">Europespedition III: Leds Free or Die Hard</a></li>
|
<li><a href="/47xj8go928ql9mq3r20p">Europespedition III: Leds Free or Die Hard</a></li>
|
||||||
</ul>
|
</ol>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -24,7 +24,7 @@ Route::get('/{tripId?}', function (Request $request, $tripId = null) {
|
||||||
if ($cachedData->trip->is_active) {
|
if ($cachedData->trip->is_active) {
|
||||||
$cachedDataUpdatedAt = new DateTime($cachedData->trip->updated_at);
|
$cachedDataUpdatedAt = new DateTime($cachedData->trip->updated_at);
|
||||||
$now = new DateTime();
|
$now = new DateTime();
|
||||||
if (intval(($now->getTimestamp() - $cachedDataUpdatedAt->getTimestamp()) / 3600) <= ($cachedData->trip->is_tracking) ? 1 : 3) {
|
if (intval(($now->getTimestamp() - $cachedDataUpdatedAt->getTimestamp()) / 3600) <= (($cachedData->trip->is_tracking) ? 1 : 3)) {
|
||||||
return view('tracker', ['trip' => $cachedData->trip, 'showAllCheckins' => ($viewMode === 'all')]);
|
return view('tracker', ['trip' => $cachedData->trip, 'showAllCheckins' => ($viewMode === 'all')]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue