fix: replace all bare latest() with latest('attempted_at') in CrimeService
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user