Skip to content

Commit c95599a

Browse files
Ne pas notifier Mattermost pour les congés menstruels
1 parent 5b34ffc commit c95599a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Application/HumanResource/Leave/Command/CreateLeaveRequestCommandHandler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export class CreateLeaveRequestCommandHandler {
106106
leaveRequest.autoAccept(this.dateUtils.getCurrentDateToISOString());
107107
await this.leaveRequestRepository.save(leaveRequest);
108108
this.eventBus.publish(new AcceptedLeaveRequestEvent(leaveRequest));
109+
110+
return leaveRequest.getId();
109111
}
110112

111113
this.commandBus.execute(

0 commit comments

Comments
 (0)