fix typo
This commit is contained in:
parent
4bdf14de83
commit
9e65a3731c
@ -134,9 +134,9 @@ class TabulateWinners extends Command
|
||||
return $fortyThreeToSixtyEightQuery->vehicle;
|
||||
}
|
||||
|
||||
function sixtyEightToNinetyEightWinner()
|
||||
function sixtyNineToNinetyEightWinner()
|
||||
{
|
||||
$sixtyEightToNinetyEightQuery = VehicleScores::join('vehicles', 'vehicle_scores.vehicle', '=', 'vehicles.id')
|
||||
$sixtyNineToNinetyEightQuery = VehicleScores::join('vehicles', 'vehicle_scores.vehicle', '=', 'vehicles.id')
|
||||
->groupBy('vehicles.id')
|
||||
->selectRaw('*, sum(vehicle_scores.overall_score) as totalscore')
|
||||
->whereNotIn('vehicle_scores.vehicle', function($query){
|
||||
@ -147,7 +147,7 @@ class TabulateWinners extends Command
|
||||
->where('vehicles.doNotJudge', '=', 0)
|
||||
->orderBy('totalscore','desc')
|
||||
->first();
|
||||
return $sixtyEightToNinetyEightQuery->vehicle;
|
||||
return $sixtyNineToNinetyEightQuery->vehicle;
|
||||
}
|
||||
|
||||
function NinetyNineToCurrentWinner()
|
||||
@ -255,7 +255,7 @@ class TabulateWinners extends Command
|
||||
'place' => 'first'
|
||||
],
|
||||
[
|
||||
'vehicle' => sixtyEightToNinetyEightWinner()
|
||||
'vehicle' => sixtyNineToNinetyEightWinner()
|
||||
]
|
||||
);
|
||||
CarShowWinner::updateOrCreate(
|
||||
@ -264,7 +264,7 @@ class TabulateWinners extends Command
|
||||
'place' => 'second'
|
||||
],
|
||||
[
|
||||
'vehicle' => sixtyEightToNinetyEightWinner()
|
||||
'vehicle' => sixtyNineToNinetyEightWinner()
|
||||
]
|
||||
);
|
||||
CarShowWinner::updateOrCreate(
|
||||
@ -273,7 +273,7 @@ class TabulateWinners extends Command
|
||||
'place' => 'third'
|
||||
],
|
||||
[
|
||||
'vehicle' => sixtyEightToNinetyEightWinner()
|
||||
'vehicle' => sixtyNineToNinetyEightWinner()
|
||||
]
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user