fix issues in core

This commit is contained in:
2025-12-23 14:43:49 +01:00
parent 11492d1ff2
commit df5c20c5cc
62 changed files with 480 additions and 334 deletions

View File

@@ -45,7 +45,7 @@ export class GetSeasonDetailsUseCase {
}
const season = await this.seasonRepository.findById(input.seasonId);
if (!season || season.leagueId !== league.id) {
if (!season || season.leagueId.toString() !== league.id.toString()) {
return Result.err({
code: 'SEASON_NOT_FOUND',
details: {