@golemio/pid 2.2.4-dev.545434080 → 2.2.4-dev.545612185
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.
|
@@ -32,8 +32,9 @@ class GtfsRtAlertsController {
|
|
|
32
32
|
alertsMessage.header = gtfsRealtime.FeedHeader.fromObject(header);
|
|
33
33
|
const alertEntities = yield this.ropidVYMIEventsModel.getCurrentAlerts(currentDate);
|
|
34
34
|
const transformedAlerts = yield this.gtfsAlertTransformation.transform(alertEntities);
|
|
35
|
-
for (const transformedEntity
|
|
36
|
-
|
|
35
|
+
for (const transformedEntity of transformedAlerts) {
|
|
36
|
+
const feedEntity = gtfsRealtime.FeedEntity.fromObject(transformedEntity);
|
|
37
|
+
alertsMessage.entity.push(feedEntity);
|
|
37
38
|
}
|
|
38
39
|
if (gtfsRealtime.FeedMessage.verify(alertsMessage) === null) {
|
|
39
40
|
const buffer = gtfsRealtime.FeedMessage.encode(alertsMessage).finish();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GtfsRtAlertsController.js","sourceRoot":"","sources":["../../../src/integration-engine/gtfsrt-alerts/GtfsRtAlertsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oFAA0D;
|
|
1
|
+
{"version":3,"file":"GtfsRtAlertsController.js","sourceRoot":"","sources":["../../../src/integration-engine/gtfsrt-alerts/GtfsRtAlertsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oFAA0D;AAK1D,MAAM,YAAY,GAAG,gCAAoB,CAAC,gBAAgB,CAAC;AAE3D,MAAa,sBAAsB;IAK/B,YACI,WAAuB,EACvB,oBAA0C,EAC1C,uBAAkD;QAElD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;QACjD,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;IAC3D,CAAC;IAEY,oBAAoB,CAAC,WAA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