Skip to content

Commit

Permalink
RENDEZVOUS-746 : No appointments if a minimum time between two appoin…
Browse files Browse the repository at this point in the history
…tments is set
  • Loading branch information
ThomasDumont authored and rdeniel committed Jul 6, 2022
1 parent 17cbe2a commit a972e76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public static boolean checkNbDaysBetweenTwoAppointmentsTaken( AppointmentDTO app
.max( LocalDateTime::compareTo ).orElse( null );

if ( dateOfTheLastAppointmentTaken != null
&& Math.abs( dateOfTheLastAppointmentTaken.until( LocalDateTime.now( ), ChronoUnit.DAYS ) ) <= nbDaysBetweenTwoAppointments )
&& Math.abs( dateOfTheLastAppointmentTaken.until( LocalDateTime.now( ), ChronoUnit.DAYS ) ) < nbDaysBetweenTwoAppointments )
{
bCheckPassed = false;
}
Expand Down

0 comments on commit a972e76

Please sign in to comment.