mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 08:22:41 +00:00
basic ad entity without direction
This commit is contained in:
@@ -5,9 +5,9 @@ import { DefaultParams } from '../core/application/types/default-params.type';
|
||||
|
||||
@Injectable()
|
||||
export class DefaultParamsProvider implements DefaultParamsProviderPort {
|
||||
constructor(private readonly _configService: ConfigService) {}
|
||||
constructor(private readonly configService: ConfigService) {}
|
||||
getParams = (): DefaultParams => ({
|
||||
GEOROUTER_TYPE: this._configService.get('GEOROUTER_TYPE'),
|
||||
GEOROUTER_URL: this._configService.get('GEOROUTER_URL'),
|
||||
GEOROUTER_TYPE: this.configService.get('GEOROUTER_TYPE'),
|
||||
GEOROUTER_URL: this.configService.get('GEOROUTER_URL'),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { Coordinates } from '../core/application/types/coordinates.type';
|
||||
import { DirectionEncoderPort } from '../core/application/ports/direction-encoder.port';
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class PostgresDirectionEncoder implements DirectionEncoderPort {
|
||||
encode = (coordinates: Coordinates[]): string =>
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user