Fix pc table join

This commit is contained in:
Russ Long 2022-05-01 09:37:11 -04:00
parent 556371c11d
commit 0a231c14bb

View File

@ -62,7 +62,7 @@ class TabulateWinners extends Command
function pcWinner()
{
$peoplesChoiceWinnerQuery = DB::table('peoples_choice')
$peoplesChoiceWinnerQuery = PeoplesChoice::join('vehicles', 'peoples_choice.vehicle', '=', 'vehicles.id')
->groupBy('peoples_choice.vehicle')
->selectRaw('*, sum(pc_count) as totalscore')
->whereNotIn('vehicle', function($query){