improve TODO explanation in journey value object

This commit is contained in:
Sylvain Briat 2024-03-28 17:48:20 +01:00 committed by sbriat
parent e53c12ba74
commit 3786fcc2c2
1 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,12 @@ export class Journey extends ValueObject<JourneyProps> {
const driverActorTime = passengerDepartureJourneyItem.actorTimes.find(
(actorTime: ActorTime) => actorTime.role == Role.DRIVER,
) as ActorTime;
// TODO : check if the following conditions are even to the ones used in the return
// 4 possibilities to be valid :
// - 1 : the driver time boundaries are within the passenger time boundaries
// - 2 : the max driver time boundary is within the passenger time boundaries
// - 3 : the min driver time boundary is within the passenger time boundaries
// - 4 : the passenger time boundaries are within the driver time boundaries
// return (
// // 1
// (driverActorTime.firstMinDatetime >=