From ea12c85c21ec4f65845efe152e815ef6a140a356 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Wed, 23 Sep 2026 17:31:20 +0700 Subject: [PATCH] fix(guides) : publish created extra sections --- lib/guides/queries.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/guides/queries.ts b/lib/guides/queries.ts index e2c6055..b843c3a 100644 --- a/lib/guides/queries.ts +++ b/lib/guides/queries.ts @@ -335,6 +335,7 @@ async function populatedSections(guideId: string) { or exists (select 1 from jsonb_array_elements(p.target_conditions) c where c->'rows' <> '[]'::jsonb))) when 'constellations' then exists (select 1 from ${constellationRecommendations} r join ${constellationConditions} c on c.id = r.condition_id where c.guide_id = ${guideId}) when 'team' then exists (select 1 from ${teamCompositions} t where t.guide_id = ${guideId}) + when 'extra' then true else exists (select 1 from ${extraSectionRows} r where r.section_id = ${guideSections.id}) end`, }).from(guideSections).where(and( eq(guideSections.guideId, guideId),