Auditionadmin 68 #85

Merged
okorpheus merged 11 commits from auditionadmin-68 into master 2024-10-31 17:22:49 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 0d19b87715 - Show all commits

View File

@ -6,6 +6,7 @@ namespace App\Actions\Tabulation;
use App\Exceptions\ScoreEntryException;
use App\Models\BonusScore;
use App\Models\CalculatedScore;
use App\Models\Entry;
use App\Models\User;
use Illuminate\Database\Eloquent\Collection;
@ -27,6 +28,8 @@ class EnterBonusScore
// Create the score for each related entry
foreach ($entries as $relatedEntry) {
// Also delete any cached scores
CalculatedScore::where('entry_id', $relatedEntry->id)->delete();
BonusScore::create([
'entry_id' => $relatedEntry->id,
'user_id' => $judge->id,