a judge entering a score will delete cached scores for that entry
This commit is contained in:
parent
94ed41ee6f
commit
653305c938
|
|
@ -7,6 +7,7 @@
|
|||
namespace App\Actions\Tabulation;
|
||||
|
||||
use App\Exceptions\ScoreEntryException;
|
||||
use App\Models\CalculatedScore;
|
||||
use App\Models\Entry;
|
||||
use App\Models\ScoreSheet;
|
||||
use App\Models\User;
|
||||
|
|
@ -24,6 +25,7 @@ class EnterScore
|
|||
*/
|
||||
public function __invoke(User $user, Entry $entry, array $scores, ScoreSheet|false $scoreSheet = false): ScoreSheet
|
||||
{
|
||||
CalculatedScore::where('entry_id', $entry->id)->delete();
|
||||
$scores = collect($scores);
|
||||
$this->basicChecks($user, $entry, $scores);
|
||||
$this->checkJudgeAssignment($user, $entry);
|
||||
|
|
|
|||
Loading…
Reference in New Issue