fix issues in core

This commit is contained in:
2025-12-23 15:38:50 +01:00
parent df5c20c5cc
commit 120d3bb1a1
125 changed files with 1005 additions and 793 deletions

View File

@@ -58,10 +58,12 @@ export class ManageSeasonLifecycleUseCase {
}
const season = await this.seasonRepository.findById(input.seasonId);
if (!season || season.leagueId !== league.id) {
if (!season || season.leagueId !== league.id.toString()) {
return Result.err({
code: 'SEASON_NOT_FOUND',
details: { message: `Season ${input.seasonId} does not belong to league ${league.id}` },
details: {
message: `Season ${input.seasonId} does not belong to league ${league.id.toString()}`,
},
});
}