From 45287933030bc8ba6a039edaad171886147a5219 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Thu, 31 Oct 2024 09:15:08 -0500 Subject: [PATCH] deleting a score will clear cached scores --- app/Http/Controllers/Tabulation/ScoreController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Tabulation/ScoreController.php b/app/Http/Controllers/Tabulation/ScoreController.php index 41a2702..2080343 100644 --- a/app/Http/Controllers/Tabulation/ScoreController.php +++ b/app/Http/Controllers/Tabulation/ScoreController.php @@ -22,6 +22,7 @@ class ScoreController extends Controller public function destroyScore(ScoreSheet $score) { + CalculatedScore::where('entry_id', $score->entry_id)->delete(); if ($score->entry->audition->hasFlag('seats_published')) { return redirect()->back()->with('error', 'Cannot delete scores for an entry where seats are published'); }