@golemio/pid 3.9.5-dev.1738105452 → 3.9.5-dev.1738503102
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/db/migrations/postgresql/sqls/20250320145302-create-get-stops-by-asw-fnc-down.sql +1 -1
- package/db/migrations/postgresql/sqls/20250320145302-create-get-stops-by-asw-fnc-up.sql +2 -2
- package/dist/integration-engine/vehicle-positions/workers/vehicle-positions/data-access/helpers/RawQueryProvider.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
DROP function get_ropidgtfs_stops_by_asw(int,
|
|
1
|
+
DROP function get_ropidgtfs_stops_by_asw(int, varchar)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
CREATE OR REPLACE FUNCTION get_ropidgtfs_stops_by_asw(aswnodeid INT,
|
|
1
|
+
CREATE OR REPLACE FUNCTION get_ropidgtfs_stops_by_asw(aswnodeid INT, platformcode varchar)
|
|
2
2
|
RETURNS TEXT AS $$
|
|
3
3
|
DECLARE
|
|
4
4
|
stop_ids TEXT;
|
|
@@ -6,7 +6,7 @@ BEGIN
|
|
|
6
6
|
SELECT STRING_AGG(stop_id::TEXT, ', ') INTO stop_ids
|
|
7
7
|
FROM ropidgtfs_stops
|
|
8
8
|
WHERE asw_node_id = aswnodeid
|
|
9
|
-
AND
|
|
9
|
+
AND platform_code = platformcode;
|
|
10
10
|
|
|
11
11
|
RETURN stop_ids;
|
|
12
12
|
END;
|
|
@@ -50,7 +50,7 @@ class RawQueryProvider {
|
|
|
50
50
|
LEFT JOIN ropidgtfs_precomputed_minmax_stop_sequences
|
|
51
51
|
ON ropidgtfs_trips.trip_id = ropidgtfs_precomputed_minmax_stop_sequences.trip_id
|
|
52
52
|
WHERE ropidgtfs_routes.route_short_name LIKE :cisLineShortName
|
|
53
|
-
AND ropidgtfs_stop_times.stop_id = ANY(STRING_TO_ARRAY(get_ropidgtfs_stops_by_asw(:startAswNodeID, :
|
|
53
|
+
AND ropidgtfs_stop_times.stop_id = ANY(STRING_TO_ARRAY(get_ropidgtfs_stops_by_asw(:startAswNodeID, :startCisStopPlatformCode), ','))
|
|
54
54
|
AND stop_sequence = '1'
|
|
55
55
|
AND normalize_departure_time(ropidgtfs_stop_times.departure_time) = TO_CHAR(
|
|
56
56
|
(:startDateFormatted at time zone 'Europe/Prague'), 'FMHH24:MI:SS'
|