refactor
This commit is contained in:
@@ -135,9 +135,7 @@ export class LeagueService {
|
||||
if (result.isErr()) {
|
||||
throw new Error(result.unwrapErr().code);
|
||||
}
|
||||
const presenter = new AllLeaguesWithCapacityPresenter();
|
||||
presenter.present(result.unwrap());
|
||||
return presenter.getViewModel()!;
|
||||
return this.getAllLeaguesWithCapacityUseCase.outputPort.present(result);
|
||||
}
|
||||
|
||||
async getTotalLeagues(): Promise<TotalLeaguesDTO> {
|
||||
|
||||
Reference in New Issue
Block a user