Build Matches without saving directly to database

This commit is contained in:
Daniel Schädler 2019-05-02 15:17:32 +02:00
parent f93c714e1a
commit 23249ee93b
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ class GroupStageService
match = Match.new state: :not_started,
position: i,
match_scores: [
MatchScore.create(team: matchup.first),
MatchScore.create(team: matchup.second)
MatchScore.new(team: matchup.first),
MatchScore.new(team: matchup.second)
]
matches << match
end