fix issues in core
This commit is contained in:
@@ -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()}`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user