| Total Complexity | 1 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import {EventsHandler} from '@nestjs/cqrs'; |
||
| 4 | |||
| 5 | @EventsHandler(AcceptedHolidayEvent) |
||
| 6 | export class AcceptedHolidayEventListener { |
||
| 7 | constructor( |
||
| 8 | private readonly holidayToEventsConverter: HolidayToEventsConverter |
||
| 9 | ) {} |
||
| 10 | |||
| 11 | public handle(event: AcceptedHolidayEvent): void { |
||
| 12 | this.holidayToEventsConverter.convert(event.holiday); |
||
| 13 | } |
||
| 15 |