diff --git a/app/Console/Commands/TabulateWinnersNew.php b/app/Console/Commands/TabulateWinnersNew.php index 0f7b103..04043a0 100644 --- a/app/Console/Commands/TabulateWinnersNew.php +++ b/app/Console/Commands/TabulateWinnersNew.php @@ -91,7 +91,8 @@ class TabulateWinnersNew extends Command CarShowWinner::updateOrCreate([ 'category' => $categoryId, 'place' => $place, - 'vehicle' => $winner->vehicle_id + 'vehicle' => $winner->vehicle_id, + 'total_score' => $winner->totalscore ]); } } @@ -125,7 +126,8 @@ class TabulateWinnersNew extends Command CarShowWinner::create([ 'category' => $categoryId, 'place' => $place, - 'vehicle' => $winner->vehicle_id + 'vehicle' => $winner->vehicle_id, + 'total_score' => $winner->totalvotes ]); } }