fix match missing game

This commit is contained in:
gelbeinhalb
2026-01-20 16:31:43 +01:00
parent b108375ad5
commit b33260ec23

View File

@@ -214,8 +214,8 @@ void main() {
'Adding the same player to separate matches works correctly', 'Adding the same player to separate matches works correctly',
() async { () async {
final playersList = [testPlayer1, testPlayer2, testPlayer3]; final playersList = [testPlayer1, testPlayer2, testPlayer3];
final match1 = Match(name: 'Match 1', players: playersList); final match1 = Match(name: 'Match 1', game: testGame, players: playersList);
final match2 = Match(name: 'Match 2', players: playersList); final match2 = Match(name: 'Match 2', game: testGame, players: playersList);
await Future.wait([ await Future.wait([
database.matchDao.addMatch(match: match1), database.matchDao.addMatch(match: match1),