forked from TFMM/silent-auction
add score to winner table
This commit is contained in:
@@ -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
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user