fix issues in core
This commit is contained in:
@@ -3,7 +3,7 @@ import type { ILeagueRepository } from '../../domain/repositories/ILeagueReposit
|
||||
import type { IResultRepository } from '../../domain/repositories/IResultRepository';
|
||||
import type { IDriverRepository } from '../../domain/repositories/IDriverRepository';
|
||||
import type { IStandingRepository } from '../../domain/repositories/IStandingRepository';
|
||||
import { Result as RaceResult } from '../../domain/entities/Result';
|
||||
import { Result as RaceResult } from '../../domain/entities/result/Result';
|
||||
import type { Logger, UseCaseOutputPort } from '@core/shared/application';
|
||||
import { Result } from '@core/shared/application/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
@@ -154,15 +154,15 @@ export class ImportRaceResultsUseCase {
|
||||
|
||||
this.logger.info('ImportRaceResultsUseCase:race results created', { raceId });
|
||||
|
||||
await this.standingRepository.recalculate(league.id);
|
||||
await this.standingRepository.recalculate(league.id.toString());
|
||||
|
||||
this.logger.info('ImportRaceResultsUseCase:standings recalculated', {
|
||||
leagueId: league.id,
|
||||
leagueId: league.id.toString(),
|
||||
});
|
||||
|
||||
const result: ImportRaceResultsResult = {
|
||||
raceId,
|
||||
leagueId: league.id,
|
||||
leagueId: league.id.toString(),
|
||||
driversProcessed: rows.length,
|
||||
resultsRecorded: validEntities.length,
|
||||
errors: [],
|
||||
|
||||
Reference in New Issue
Block a user