refactor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { IRaceRegistrationRepository } from '../../domain/repositories/IRaceRegistrationRepository';
|
||||
import type { Logger, UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { Logger, UseCaseOutputPort, UseCase } from '@core/shared/application';
|
||||
import { Result } from '@core/shared/application/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
|
||||
@@ -26,7 +26,7 @@ export type IsDriverRegisteredForRaceResult = {
|
||||
*
|
||||
* Checks if a driver is registered for a specific race.
|
||||
*/
|
||||
export class IsDriverRegisteredForRaceUseCase {
|
||||
export class IsDriverRegisteredForRaceUseCase implements UseCase<IsDriverRegisteredForRaceInput, void, IsDriverRegisteredForRaceErrorCode> {
|
||||
constructor(
|
||||
private readonly registrationRepository: IRaceRegistrationRepository,
|
||||
private readonly logger: Logger,
|
||||
|
||||
Reference in New Issue
Block a user