fix issues
This commit is contained in:
@@ -25,6 +25,7 @@ export class GetTotalDriversUseCase implements UseCase<GetTotalDriversInput, Get
|
||||
async execute(
|
||||
_input: GetTotalDriversInput,
|
||||
): Promise<Result<GetTotalDriversResult, ApplicationErrorCode<GetTotalDriversErrorCode, { message: string }>>> {
|
||||
void _input;
|
||||
try {
|
||||
const drivers = await this.driverRepository.findAll();
|
||||
const result: GetTotalDriversResult = { totalDrivers: drivers.length };
|
||||
|
||||
Reference in New Issue
Block a user