add score to winner table

This commit is contained in:
2026-04-20 10:03:36 -04:00
parent f9d2fcfa06
commit c13238014a
+4 -2
View File
@@ -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
]);
}
}