Remove depricated code from EnterBonusScore action.
This commit is contained in:
parent
cee9f487bc
commit
6c52aa255c
|
|
@ -6,7 +6,6 @@ namespace App\Actions\Tabulation;
|
||||||
|
|
||||||
use App\Exceptions\ScoreEntryException;
|
use App\Exceptions\ScoreEntryException;
|
||||||
use App\Models\BonusScore;
|
use App\Models\BonusScore;
|
||||||
use App\Models\CalculatedScore;
|
|
||||||
use App\Models\Entry;
|
use App\Models\Entry;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Illuminate\Database\Eloquent\Collection;
|
use Illuminate\Database\Eloquent\Collection;
|
||||||
|
|
@ -29,7 +28,6 @@ class EnterBonusScore
|
||||||
// Create the score for each related entry
|
// Create the score for each related entry
|
||||||
foreach ($entries as $relatedEntry) {
|
foreach ($entries as $relatedEntry) {
|
||||||
// Also delete any cached scores
|
// Also delete any cached scores
|
||||||
CalculatedScore::where('entry_id', $relatedEntry->id)->delete();
|
|
||||||
BonusScore::create([
|
BonusScore::create([
|
||||||
'entry_id' => $relatedEntry->id,
|
'entry_id' => $relatedEntry->id,
|
||||||
'user_id' => $judge->id,
|
'user_id' => $judge->id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue