fix issues in core
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user