Conditions | 2 |
Total Lines | 17 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { QueryHandler } from '@nestjs/cqrs'; |
||
17 | |||
18 | public async execute(query: GetUsersPresenceQuery): Promise<UserPresenceView[]> { |
||
19 | const currentDate = this.dateUtils.getCurrentDate(); |
||
20 | const workedDays = this.dateUtils.getWorkedDaysDuringAPeriod(currentDate, currentDate); |
||
21 | const usersPresenceView: UserPresenceView[] = []; |
||
22 | |||
23 | if (0 === workedDays.length) { |
||
24 | return usersPresenceView; |
||
25 | } |
||
26 | |||
27 | const tst = await this.userRepository.findUsersPresences(currentDate); |
||
28 | |||
29 | console.log(tst); |
||
30 | |||
31 | |||
32 | |||
33 | return usersPresenceView; |
||
34 | } |
||
36 |