From ab8039d59b37db80ce9f0af0b3d8e08635d6c17f Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 13 Feb 2026 16:51:52 -0600 Subject: [PATCH] fix: move sync schedule block inside integration scope The sync schedule section referenced `integration` variable outside the if-block where it was assigned, causing compilation failure. --- .../live/org/integrations_live.html.heex | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/lib/towerops_web/live/org/integrations_live.html.heex b/lib/towerops_web/live/org/integrations_live.html.heex index 7e2d7fca..19e05f4b 100644 --- a/lib/towerops_web/live/org/integrations_live.html.heex +++ b/lib/towerops_web/live/org/integrations_live.html.heex @@ -119,23 +119,22 @@ Reconciliation → <% end %> - - <% end %> - - <%!-- Sync schedule info --%> - <%= if integration.enabled do %> -
-

- <.icon name="hero-clock" class="h-3.5 w-3.5 inline" /> Sync Schedule -

-

- <%= if provider.id == "preseem" do %> - Syncs every {integration.sync_interval_minutes} minutes. Baselines and fleet profiles computed nightly. - <% end %> - <%= if provider.id == "gaiia" do %> - Syncs every {integration.sync_interval_minutes} minutes. Reconciliation runs nightly. Also receives real-time webhook updates. - <% end %> -

+ <%!-- Sync schedule info --%> + <%= if integration.enabled do %> +
+

+ <.icon name="hero-clock" class="h-3.5 w-3.5 inline" /> Sync Schedule +

+

+ <%= if provider.id == "preseem" do %> + Syncs every {integration.sync_interval_minutes} minutes. Baselines and fleet profiles computed nightly. + <% end %> + <%= if provider.id == "gaiia" do %> + Syncs every {integration.sync_interval_minutes} minutes. Reconciliation runs nightly. Also receives real-time webhook updates. + <% end %> +

+
+ <% end %>
<% end %>