Compare commits

..

No commits in common. "40134331b5584401b7bd2ed03f99be4bebb8c4ac" and "064cf0642ce55ef2c894ada35757dfff7457c86d" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View file

@ -26,10 +26,9 @@
</header> </header>
<main id="pastTripsList"> <main id="pastTripsList">
<ol> <ul>
<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>
</ol> </ul>
</main> </main>
</body> </body>
</html> </html>

View file

@ -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 {