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()
|
$lastAttempt = $character->crimeAttempts()
|
||||||
->where('crime_id', $crime->id)
|
->where('crime_id', $crime->id)
|
||||||
->latest()
|
->latest('attempted_at')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
if (!$lastAttempt) {
|
if (!$lastAttempt) {
|
||||||
@@ -146,7 +146,7 @@ class CrimeService
|
|||||||
|
|
||||||
$lastAttempt = $character->crimeAttempts()
|
$lastAttempt = $character->crimeAttempts()
|
||||||
->where('crime_id', $crime->id)
|
->where('crime_id', $crime->id)
|
||||||
->latest()
|
->latest('attempted_at')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$cooldown = $crime->cooldown;
|
$cooldown = $crime->cooldown;
|
||||||
|
|||||||
Reference in New Issue
Block a user