website refactor
This commit is contained in:
@@ -16,6 +16,7 @@ export class GetTotalRacesUseCase {
|
||||
async execute(
|
||||
_input: GetTotalRacesInput,
|
||||
): Promise<Result<GetTotalRacesResult, ApplicationErrorCode<GetTotalRacesErrorCode, { message: string }>>> {
|
||||
void _input;
|
||||
try {
|
||||
const races = await this.raceRepository.findAll();
|
||||
const totalRaces = races.length;
|
||||
|
||||
Reference in New Issue
Block a user