mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-30 07:20:45 +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 =>
|
private _createWhere = (role: Role): string =>
|
||||||
[
|
[
|
||||||
|
this._wherePause(), // TODO where clause should be ordered for db index optimisation ...
|
||||||
this._whereRole(role),
|
this._whereRole(role),
|
||||||
this._whereStrict(),
|
this._whereStrict(),
|
||||||
this._whereDate(role),
|
this._whereDate(role),
|
||||||
@@ -157,6 +158,8 @@ export class PassengerOrientedSelector extends Selector {
|
|||||||
private _whereRole = (role: Role): string =>
|
private _whereRole = (role: Role): string =>
|
||||||
role == Role.PASSENGER ? 'driver=True' : 'passenger=True';
|
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 =>
|
private _whereStrict = (): string =>
|
||||||
this.query.strict
|
this.query.strict
|
||||||
? this.query.frequency == Frequency.PUNCTUAL
|
? this.query.frequency == Frequency.PUNCTUAL
|
||||||
|
|||||||
Reference in New Issue
Block a user