-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mmarchois
committed
Mar 29, 2022
1 parent
dfba814
commit ee340d1
Showing
5 changed files
with
1 addition
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
server/src/Application/HumanResource/Leave/Event/AcceptedLeaveRequestEventListener.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import { EventsHandler } from '@nestjs/cqrs'; | ||
import { AcceptedLeaveRequestEvent } from './AcceptedLeaveRequestEvent'; | ||
import { LeaveRequestToLeavesConverter } from 'src/Domain/HumanResource/Leave/Converter/LeaveRequestToLeavesConverter'; | ||
import { LeaveRequestToMealTicketRemovalConverter } from 'src/Domain/HumanResource/MealTicket/Converter/LeaveRequestToMealTicketRemovalConverter'; | ||
|
||
@EventsHandler(AcceptedLeaveRequestEvent) | ||
export class AcceptedLeaveRequestEventListener { | ||
constructor( | ||
private readonly leaveRequestToLeavesConverter: LeaveRequestToLeavesConverter, | ||
private readonly leaveRequestToMealTicketRemovalConverter: LeaveRequestToMealTicketRemovalConverter | ||
) {} | ||
|
||
public handle(event: AcceptedLeaveRequestEvent): void { | ||
this.leaveRequestToLeavesConverter.convert(event.leaveRequest); | ||
this.leaveRequestToMealTicketRemovalConverter.convert(event.leaveRequest); | ||
} | ||
} |
109 changes: 0 additions & 109 deletions
109
...omain/HumanResource/MealTicket/Converter/LeaveRequestToMealTicketRemovalConverter.spec.ts
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
...src/Domain/HumanResource/MealTicket/Converter/LeaveRequestToMealTicketRemovalConverter.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters