Moved dao methods

This commit is contained in:
2026-04-08 23:22:33 +02:00
parent e10f05adb5
commit 855b7c8bea
8 changed files with 155 additions and 148 deletions

View File

@@ -296,9 +296,9 @@ void main() {
test('Setting a winner works correctly', () async {
await database.matchDao.addMatch(match: testMatch1);
await database.matchDao.setWinner(
await database.scoreDao.setWinner(
matchId: testMatch1.id,
winnerId: testPlayer5.id,
playerId: testPlayer5.id,
);
final fetchedMatch = await database.matchDao.getMatchById(