From 32d5ec25b93434782cb8ae8157f8e5ad00906bc2 Mon Sep 17 00:00:00 2001 From: sbriat Date: Mon, 18 Sep 2023 16:44:06 +0200 Subject: [PATCH] passenger oriented geo filter --- .../queries/match/filter/passenger-oriented-geo.filter.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/ad/core/application/queries/match/filter/passenger-oriented-geo.filter.ts b/src/modules/ad/core/application/queries/match/filter/passenger-oriented-geo.filter.ts index 79a311f..7061ee0 100644 --- a/src/modules/ad/core/application/queries/match/filter/passenger-oriented-geo.filter.ts +++ b/src/modules/ad/core/application/queries/match/filter/passenger-oriented-geo.filter.ts @@ -1,6 +1,9 @@ import { CandidateEntity } from '@modules/ad/core/domain/candidate.entity'; import { Filter } from './filter.abstract'; +/** + * Filter candidates with unacceptable detour + */ export class PassengerOrientedGeoFilter extends Filter { filter = async (candidates: CandidateEntity[]): Promise => candidates.filter((candidate: CandidateEntity) =>