From f4097e96eb8e0576be0a75add2854eb6ad6eb05b Mon Sep 17 00:00:00 2001 From: sbriat Date: Thu, 31 Aug 2023 17:15:42 +0200 Subject: [PATCH] remove unused file --- src/modules/ad/infrastructure/ad.selector.ts | 23 -------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/modules/ad/infrastructure/ad.selector.ts diff --git a/src/modules/ad/infrastructure/ad.selector.ts b/src/modules/ad/infrastructure/ad.selector.ts deleted file mode 100644 index 821eb52..0000000 --- a/src/modules/ad/infrastructure/ad.selector.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MatchQuery } from '../core/application/queries/match/match.query'; -import { AlgorithmType } from '../core/application/types/algorithm.types'; -import { Role } from '../core/domain/ad.types'; - -export class AdSelector { - static select = (role: Role, query: MatchQuery): string => { - switch (query.algorithmType) { - case AlgorithmType.PASSENGER_ORIENTED: - default: - return `SELECT - ad.uuid,frequency,public.st_astext(matcher.ad.waypoints) as waypoints, - "fromDate","toDate", - "seatsProposed","seatsRequested", - strict, - "driverDuration","driverDistance", - "passengerDuration","passengerDistance", - "fwdAzimuth","backAzimuth", - si.day,si.time,si.margin - FROM ad LEFT JOIN schedule_item si ON ad.uuid = si."adUuid" - WHERE driver=True`; - } - }; -}