fix issues in adapters

This commit is contained in:
2025-12-22 22:46:15 +01:00
parent 41b27402dc
commit 1efd971032
25 changed files with 144 additions and 103 deletions

View File

@@ -110,8 +110,15 @@ describe('InMemorySeasonRepository', () => {
await repository.create(season);
const updatedSeason = Season.create({
...season,
id: season.id,
leagueId: season.leagueId.toString(),
gameId: season.gameId.toString(),
name: 'Updated Season',
status: season.status.toString() as 'planned' | 'active' | 'completed',
year: 2025,
order: 1,
startDate: new Date('2025-01-01'),
endDate: new Date('2025-12-31'),
});
await repository.update(updatedSeason);
const found = await repository.findById('1');