fix test build

sync3
Laurent 5 months ago
parent c3d3c701bb
commit 1ca71b977f
  1. 4
      PadelClubDataTests/SyncDataAccessTests.swift

@ -692,7 +692,7 @@ extension Tournament {
let matchCount = RoundRule.numberOfMatches(forTeams: minimalBracketTeamCount ?? bracketTeamCount())
let rounds = (0..<roundCount).map { //index 0 is the final
return Round(tournament: id, index: $0, matchFormat: matchFormat, loserBracketMode: loserBracketMode)
return Round(tournament: id, index: $0, format: matchFormat, loserBracketMode: loserBracketMode)
}
if rounds.isEmpty {
@ -756,7 +756,7 @@ extension Round {
let loserBracketMatchFormat = tournamentObject()?.loserBracketMatchFormat
let rounds = (0..<roundCount).map { //index 0 is the final
let round = Round(tournament: tournament, index: $0, matchFormat: loserBracketMatchFormat)
let round = Round(tournament: tournament, index: $0, format: loserBracketMatchFormat)
round.parent = id //parent
//titles[round.id] = round.roundTitle(initialMode: true)
return round

Loading…
Cancel
Save