improve TODO explanation in journey value object
This commit is contained in:
parent
e53c12ba74
commit
3786fcc2c2
|
@ -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 >=
|
||||
|
|
Loading…
Reference in New Issue