fix issues in core

This commit is contained in:
2025-12-23 11:25:08 +01:00
parent 1efd971032
commit 2854ae3c5c
113 changed files with 1142 additions and 458 deletions

View File

@@ -42,7 +42,10 @@ export class CancelRaceUseCase {
const race = await this.raceRepository.findById(raceId);
if (!race) {
this.logger.warn(`[CancelRaceUseCase] Race with ID ${raceId} not found.`);
return Result.err({ code: 'RACE_NOT_FOUND' });
return Result.err({
code: 'RACE_NOT_FOUND',
details: { message: 'Race not found' }
});
}
const cancelledRace = race.cancel();