wip
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user