mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-07 22:52:40 +00:00
fix(ad pause): add pause in sql query
This commit is contained in:
@@ -143,6 +143,7 @@ export class PassengerOrientedSelector extends Selector {
|
||||
|
||||
private _createWhere = (role: Role): string =>
|
||||
[
|
||||
this._wherePause(), // TODO where clause should be ordered for db index optimisation ...
|
||||
this._whereRole(role),
|
||||
this._whereStrict(),
|
||||
this._whereDate(role),
|
||||
@@ -157,6 +158,8 @@ export class PassengerOrientedSelector extends Selector {
|
||||
private _whereRole = (role: Role): string =>
|
||||
role == Role.PASSENGER ? 'driver=True' : 'passenger=True';
|
||||
|
||||
private _wherePause = (): string => 'pause=False'; // TODO: find if we want to add this as parameter/config or not
|
||||
|
||||
private _whereStrict = (): string =>
|
||||
this.query.strict
|
||||
? this.query.frequency == Frequency.PUNCTUAL
|
||||
|
||||
Reference in New Issue
Block a user