diff --git a/server/src/Application/HumanResource/MealTicket/Query/GetMealTicketsPerMonthQueryHandler.spec.ts b/server/src/Application/HumanResource/MealTicket/Query/GetMealTicketsPerMonthQueryHandler.spec.ts index ecb41d4a..a0d40ec2 100644 --- a/server/src/Application/HumanResource/MealTicket/Query/GetMealTicketsPerMonthQueryHandler.spec.ts +++ b/server/src/Application/HumanResource/MealTicket/Query/GetMealTicketsPerMonthQueryHandler.spec.ts @@ -71,7 +71,7 @@ describe('GetMealTicketsPerMonthQueryHandler', () => { when(user2.getFirstName()).thenReturn('Hélène'); when(user2.getLastName()).thenReturn('MARCHOIS'); - when(userRepository.findUsers(false)) + when(userRepository.findUsers(false, true)) .thenResolve([instance(user), instance(user2)]); when(mealTicketRemovalRepository.findByMonth(date)) @@ -122,7 +122,7 @@ describe('GetMealTicketsPerMonthQueryHandler', () => { ); verify( - userRepository.findUsers(false) + userRepository.findUsers(false, true) ).once(); verify( mealTicketRemovalRepository.findByMonth(date) diff --git a/server/src/Application/HumanResource/MealTicket/Query/GetMealTicketsPerMonthQueryHandler.ts b/server/src/Application/HumanResource/MealTicket/Query/GetMealTicketsPerMonthQueryHandler.ts index fb10def0..25b745a0 100644 --- a/server/src/Application/HumanResource/MealTicket/Query/GetMealTicketsPerMonthQueryHandler.ts +++ b/server/src/Application/HumanResource/MealTicket/Query/GetMealTicketsPerMonthQueryHandler.ts @@ -31,7 +31,7 @@ export class GetMealTicketsPerMonthQueryHandler { const { date } = query; const [ users, mealTicketRemovals, events ] = await Promise.all([ - this.userRepository.findUsers(false), + this.userRepository.findUsers(false, true), this.mealTicketRemovalRepository.findByMonth(date), this.eventRepository.findAllEventsByMonth(date) ]);