@golemio/fypr 1.8.1-dev.2640279443 → 1.8.1-dev.2644370450
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.
|
@@ -35,12 +35,13 @@ SELECT
|
|
|
35
35
|
ip.preset,
|
|
36
36
|
ip.geometry,
|
|
37
37
|
concat_ws(' ', ip.name, ip.stop_name, STRING_AGG(p.note, ' ')) AS search_fields,
|
|
38
|
+
-- Cast to text so mvt-maps' FilterBuilder can process the column via `NULLIF(routes, '')::jsonb`
|
|
38
39
|
JSONB_AGG(JSONB_BUILD_OBJECT(
|
|
39
40
|
'route_name', p.route_name,
|
|
40
41
|
'route_type', r.route_type,
|
|
41
42
|
'route_short_name', r.route_short_name,
|
|
42
43
|
'route_id', r.route_id
|
|
43
|
-
)) AS routes
|
|
44
|
+
))::text AS routes
|
|
44
45
|
FROM information_panels ip
|
|
45
46
|
INNER JOIN information_panels_presets p
|
|
46
47
|
ON p.information_panel_document_id = ip.document_id AND NOT p.is_testing
|