@golemio/pid 5.7.2-dev.2373103436 → 5.7.2-dev.2375472463
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/output-gateway/vehicle-positions/data-access/cache/NotPublicVehiclesRedisRepository.d.ts +0 -1
- package/dist/output-gateway/vehicle-positions/data-access/cache/NotPublicVehiclesRedisRepository.js +1 -2
- package/dist/output-gateway/vehicle-positions/data-access/cache/NotPublicVehiclesRedisRepository.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ import { INotPublicVehicles } from "../../../../schema-definitions/datasources/s
|
|
|
2
2
|
import { IoRedisConnector } from "@golemio/core/dist/helpers/data-access/redis/IoRedisConnector";
|
|
3
3
|
export declare class NotPublicVehiclesRedisRepository {
|
|
4
4
|
private redisConnector;
|
|
5
|
-
static NAMESPACE_PREFIX: string;
|
|
6
5
|
constructor(redisConnector: IoRedisConnector);
|
|
7
6
|
/**
|
|
8
7
|
* Get the current not-public vehicles configuration from Redis
|
package/dist/output-gateway/vehicle-positions/data-access/cache/NotPublicVehiclesRedisRepository.js
CHANGED
|
@@ -29,7 +29,7 @@ let NotPublicVehiclesRedisRepository = class NotPublicVehiclesRedisRepository {
|
|
|
29
29
|
await this.redisConnector.connect();
|
|
30
30
|
}
|
|
31
31
|
const connection = this.redisConnector.getConnection();
|
|
32
|
-
const value = await connection.get(const_1.NOT_PUBLIC_VEHICLES_KEY);
|
|
32
|
+
const value = await connection.get(`${const_1.CONFIG_NAMESPACE_PREFIX}:${const_1.NOT_PUBLIC_VEHICLES_KEY}`);
|
|
33
33
|
if (!value) {
|
|
34
34
|
return { road: { registrationNumbers: [] }, tram: { registrationNumbers: [] }, routeIds: [] };
|
|
35
35
|
}
|
|
@@ -37,7 +37,6 @@ let NotPublicVehiclesRedisRepository = class NotPublicVehiclesRedisRepository {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
exports.NotPublicVehiclesRedisRepository = NotPublicVehiclesRedisRepository;
|
|
40
|
-
NotPublicVehiclesRedisRepository.NAMESPACE_PREFIX = const_1.CONFIG_NAMESPACE_PREFIX;
|
|
41
40
|
exports.NotPublicVehiclesRedisRepository = NotPublicVehiclesRedisRepository = __decorate([
|
|
42
41
|
(0, tsyringe_1.injectable)(),
|
|
43
42
|
__param(0, (0, tsyringe_1.inject)(ioc_1.ContainerToken.RedisConnector)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotPublicVehiclesRedisRepository.js","sourceRoot":"","sources":["../../../../../src/output-gateway/vehicle-positions/data-access/cache/NotPublicVehiclesRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iFAA+F;AAC/F,oGAAiG;AACjG,+DAAuE;AACvE,iEAAwE;AAGjE,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;
|
|
1
|
+
{"version":3,"file":"NotPublicVehiclesRedisRepository.js","sourceRoot":"","sources":["../../../../../src/output-gateway/vehicle-positions/data-access/cache/NotPublicVehiclesRedisRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iFAA+F;AAC/F,oGAAiG;AACjG,+DAAuE;AACvE,iEAAwE;AAGjE,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IACzC,YAA2D,cAAgC;QAAhC,mBAAc,GAAd,cAAc,CAAkB;IAAG,CAAC;IAE/F;;OAEG;IACI,KAAK,CAAC,SAAS;QAClB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,EAAE,CAAC;YACrC,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;QACxC,CAAC;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC;QACvD,MAAM,KAAK,GAAG,MAAM,UAAU,CAAC,GAAG,CAAC,GAAG,+BAAuB,IAAI,+BAAuB,EAAE,CAAC,CAAC;QAC5F,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,OAAO,EAAE,IAAI,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;QAClG,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAuB,CAAC;IACnD,CAAC;CACJ,CAAA;AAjBY,4EAAgC;2CAAhC,gCAAgC;IAD5C,IAAA,qBAAU,GAAE;IAEI,WAAA,IAAA,iBAAM,EAAC,oBAAc,CAAC,cAAc,CAAC,CAAA;qCAAyB,mCAAgB;GADlF,gCAAgC,CAiB5C"}
|