fix: replace all bare latest() with latest('attempted_at') in CrimeService

This commit is contained in:
Doar Mihai
2026-06-28 03:18:32 +03:00
parent 1050d19fcc
commit 435cef6beb
+2 -2
View File
@@ -122,7 +122,7 @@ class CrimeService
{
$lastAttempt = $character->crimeAttempts()
->where('crime_id', $crime->id)
->latest()
->latest('attempted_at')
->first();
if (!$lastAttempt) {
@@ -146,7 +146,7 @@ class CrimeService
$lastAttempt = $character->crimeAttempts()
->where('crime_id', $crime->id)
->latest()
->latest('attempted_at')
->first();
$cooldown = $crime->cooldown;