| Total Complexity | 1 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import { Inject } from '@nestjs/common'; |
||
| 6 | |||
| 7 | @QueryHandler(GetYearlyLeavesSummaryQuery) |
||
| 8 | export class GetYearlyLeavesSummaryQueryHandler { |
||
| 9 | constructor( |
||
| 10 | @Inject('ILeaveRepository') |
||
| 11 | private readonly leaveRepository: ILeaveRepository |
||
| 12 | ) {} |
||
| 13 | |||
| 14 | public async execute( |
||
| 15 | query: GetYearlyLeavesSummaryQuery |
||
| 16 | ): Promise<LeavesSummaryView[]> { |
||
| 17 | const leavesSummaries: LeavesSummaryView[] = [new LeavesSummaryView(420)]; |
||
| 18 | return leavesSummaries; |
||
| 19 | } |
||
| 21 |