@golemio/rush-hour-aggregation 1.3.1-dev.2460426119 → 1.3.1-dev.2467273091

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golemio/rush-hour-aggregation",
3
- "version": "1.3.1-dev.2460426119",
3
+ "version": "1.3.1-dev.2467273091",
4
4
  "description": "Rush hour data aggregation for Praha dopravní project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,7 +43,7 @@ select
43
43
  ) as properties
44
44
  from
45
45
  (
46
- select distinct on (gs.gs, nti.situation_id, nti.situation_record_type)
46
+ select distinct on (gs.gs, nti.situation_id, nti.situation_record_type, nti.situation_version_time)
47
47
  (date_part('epoch'::text, gs.gs) * 1000::double precision)::bigint as measured_at,
48
48
  gs.gs,
49
49
  nti.general_public_comment,
@@ -78,6 +78,7 @@ from
78
78
  gs.gs,
79
79
  nti.situation_id,
80
80
  nti.situation_record_type,
81
+ nti.situation_version_time,
81
82
  nti.situation_version::bigint desc
82
83
  ) t
83
84
  order by t.situation_id, t.situation_record_type, t.situation_version_time, t.measured_at