Skip to content

Commit

Permalink
Completed todos from task list for classes Match and RankingRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Oct 6, 2024
1 parent 0405e87 commit 6a3edf1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions League/Controllers/Match.cs
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,6 @@ public async Task<IActionResult> EditFixture([FromForm] EditFixtureViewModel mod

ModelState.Clear();

// Todo: This business logic should rather go into settings
//_tenantContext.TournamentContext.FixtureRuleSet.PlannedMatchTimeMustStayInCurrentLegBoundaries = model.Tournament.IsPlanningMode;

if (!await model.ValidateAsync(
new FixtureValidator(match, (_tenantContext, _timeZoneConverter, model.PlannedMatch), DateTime.UtcNow),
ModelState))
Expand Down Expand Up @@ -772,8 +769,6 @@ private void SendFixtureNotification(long matchId)

private void SendResultNotification(in MatchEntity match, bool isResultRemoved)
{
// Todo: Should we check whether an existing result was changed?

var smt = _sendMailTask.CreateNewInstance();
smt.SetMessageCreator(new ResultEnteredCreator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public virtual async Task ReplaceAsync(RankingList rankingList, long roundId, Ca

try
{
// Todo: TournamentId is defined via the Round - remove TournamentId from the Ranking table. View RankingList does not depend on TournamentId already.
var tournamentId = await GetTournamentIdOfRoundAsync(roundId, cancellationToken);

// Fetch existing ranking entities for the round for deletion
Expand Down

0 comments on commit 6a3edf1

Please sign in to comment.