passenger oriented geo filter

This commit is contained in:
sbriat 2023-09-18 16:44:06 +02:00
parent 4e118603f3
commit 32d5ec25b9
1 changed files with 3 additions and 0 deletions

View File

@ -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<CandidateEntity[]> =>
candidates.filter((candidate: CandidateEntity) =>