Skip to content

Commit

Permalink
associate season
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Jan 22, 2025
1 parent c7a9801 commit e51885a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/UserSeasonScoresRecalculate.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function recalculate(Season $season): void
->where('season_id', $season->getKey())
->firstOrNew();

$seasonScore->season_id = $season->getKey();
$seasonScore->season()->associate($season);
$seasonScore->calculate(false);
$seasonScore->save();

Expand Down

0 comments on commit e51885a

Please sign in to comment.