Skip to content

Commit

Permalink
Fix bug in TournamentRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed May 31, 2024
1 parent b04ccc8 commit c5f3d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ await da.StartTransactionAsync(IsolationLevel.ReadCommitted,
if (sourceTournament.NextTournamentId is null)
{
sourceTournament.NextTournamentId = targetTournament.Id;
sourceTournament.ModifiedOn = sourceTournament.ModifiedOn;
sourceTournament.ModifiedOn = targetTournament.ModifiedOn;
await da.SaveEntityAsync(sourceTournament, true, false, cancellationToken);
_logger.LogDebug("{Property} set to {NextTournamentId}", nameof(TournamentEntity.NextTournamentId), sourceTournament.NextTournamentId);
}
Expand Down
2 changes: 1 addition & 1 deletion TournamentManager/TournamentManager/TournamentCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ internal async Task<bool> CopyRoundsWithLegsToTarget(CopyTournamentArgs args, To
for (var index = 0; index < sourceRound.RoundLegs.Count; index++)
{
var rl = sourceRound.RoundLegs[index];
var targetRoundLeg = new RoundLegEntity
_ = new RoundLegEntity
{
Round = targetRound, // this adds the round leg to the target round
SequenceNo = rl.SequenceNo,
Expand Down

0 comments on commit c5f3d6a

Please sign in to comment.