Skip to content

Commit

Permalink
fix: concat config_id and path for lookup_component_config_query
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Oct 16, 2024
1 parent 8b0f0ae commit d7e7607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/005_component_views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ BEGIN
WITH config_id_paths AS (
SELECT config_items.id
FROM config_items
WHERE starts_with(path, (SELECT path FROM config_items WHERE config_items.id IN (SELECT config_id FROM components WHERE components.id = $1::UUID)))
WHERE starts_with(path, (SELECT CONCAT(path, '.', id) FROM config_items WHERE config_items.id IN (SELECT config_id FROM components WHERE components.id = $1::UUID)))
)
SELECT components.id
FROM components
Expand Down

0 comments on commit d7e7607

Please sign in to comment.