diff --git a/src/Infrastructure/HumanResource/Leave/Controller/AddLeaveRequestController.ts b/src/Infrastructure/HumanResource/Leave/Controller/AddLeaveRequestController.ts index d695b281..4c3a3943 100644 --- a/src/Infrastructure/HumanResource/Leave/Controller/AddLeaveRequestController.ts +++ b/src/Infrastructure/HumanResource/Leave/Controller/AddLeaveRequestController.ts @@ -49,7 +49,7 @@ export class AddLeaveRequestController { const { type, startDate, startsAllDay, endDate, endsAllDay, comment } = dto; try { - const id = await this.commandBus.execute( + await this.commandBus.execute( new CreateLeaveRequestCommand( user, type, diff --git a/src/Infrastructure/HumanResource/Leave/Controller/GetLeaveRequestController.ts b/src/Infrastructure/HumanResource/Leave/Controller/GetLeaveRequestController.ts index a0716f77..eeea09ed 100644 --- a/src/Infrastructure/HumanResource/Leave/Controller/GetLeaveRequestController.ts +++ b/src/Infrastructure/HumanResource/Leave/Controller/GetLeaveRequestController.ts @@ -4,7 +4,6 @@ import { UseGuards, Get, Render, - Query, Param } from '@nestjs/common'; import { IQueryBus } from 'src/Application/IQueryBus'; @@ -16,7 +15,6 @@ import { LeaveRequestTableFactory } from '../Table/LeaveRequestTableFactory'; import { GetLeaveRequestByIdQuery } from 'src/Application/HumanResource/Leave/Query/GetLeaveRequestByIdQuery'; import { IdDTO } from 'src/Infrastructure/Common/DTO/IdDTO'; import { CanLeaveRequestBeModerated } from 'src/Domain/HumanResource/Leave/Specification/CanLeaveRequestBeModerated'; -import { LeaveRequestView } from 'src/Application/HumanResource/Leave/View/LeaveRequestView'; import { LeaveRequestDetailView } from 'src/Application/HumanResource/Leave/View/LeaveRequestDetailView'; @Controller('app/people/leaves') diff --git a/src/translations/fr-FR.ftl b/src/translations/fr-FR.ftl index 26e2d658..5f177464 100644 --- a/src/translations/fr-FR.ftl +++ b/src/translations/fr-FR.ftl @@ -142,7 +142,7 @@ leaves-status-value = {$status -> } leaves-duration = Durée leaves-duration-value = {$days -> - [one] 1 jour + [1] 1 jour *[other] {$days} jours } leaves-see-requests = Voir les demandes de congés