presenter refactoring
This commit is contained in:
@@ -13,6 +13,7 @@ export class DashboardController {
|
||||
@ApiQuery({ name: 'driverId', description: 'Driver ID' })
|
||||
@ApiResponse({ status: 200, description: 'Dashboard overview', type: DashboardOverviewDTO })
|
||||
async getDashboardOverview(@Query('driverId') driverId: string): Promise<DashboardOverviewDTO> {
|
||||
return this.dashboardService.getDashboardOverview(driverId);
|
||||
const presenter = await this.dashboardService.getDashboardOverview(driverId);
|
||||
return presenter.viewModel;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user