Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import { QueryHandler } from '@nestjs/cqrs'; |
||
6 | |||
7 | @QueryHandler(GetMealTicketsPerMonthQuery) |
||
8 | export class GetMealTicketsPerMonthQueryHandler { |
||
9 | constructor( |
||
10 | @Inject('IDateUtils') |
||
11 | private readonly dateUtils: IDateUtils, |
||
12 | @Inject('IMealTicketRemovalRepository') |
||
13 | private readonly mealTicketRemovalRepository: IMealTicketRemovalRepository |
||
14 | ) {} |
||
15 | |||
16 | public async execute( |
||
17 | query: GetMealTicketsPerMonthQuery |
||
18 | ): Promise<void> { |
||
19 | const { user, date } = query; |
||
20 | /*const workingDaysByMonth = this.dateUtils.getAllWorkingDayOfYearByMonth( |
||
38 |