This commit is contained in:
2025-12-04 15:15:24 +01:00
parent b7d5551ea7
commit c698a0b893
119 changed files with 1167 additions and 2652 deletions

View File

@@ -1,9 +1,5 @@
import type { IRaceRegistrationRepository } from '@gridpilot/racing/domain/repositories/IRaceRegistrationRepository';
export interface WithdrawFromRaceCommand {
raceId: string;
driverId: string;
}
import type { WithdrawFromRaceCommandDTO } from '../dto/WithdrawFromRaceCommandDTO';
/**
* Mirrors legacy withdrawFromRace behavior:
@@ -17,7 +13,7 @@ export class WithdrawFromRaceUseCase {
private readonly registrationRepository: IRaceRegistrationRepository,
) {}
async execute(command: WithdrawFromRaceCommand): Promise<void> {
async execute(command: WithdrawFromRaceCommandDTO): Promise<void> {
const { raceId, driverId } = command;
// Let repository enforce "not registered" error behavior to match legacy logic.