From 471c4f6893c7d1c3b47d535d3ee15dd5ce2f8ca2 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 13 Feb 2026 14:08:54 -0600 Subject: [PATCH] fix: default new integrations to enabled on creation --- lib/towerops_web/live/org/integrations_live.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/towerops_web/live/org/integrations_live.ex b/lib/towerops_web/live/org/integrations_live.ex index 9bbaae66..bd26fdaf 100644 --- a/lib/towerops_web/live/org/integrations_live.ex +++ b/lib/towerops_web/live/org/integrations_live.ex @@ -96,7 +96,10 @@ defmodule ToweropsWeb.Org.IntegrationsLive do result = case existing do nil -> - Integrations.create_integration(organization.id, Map.put(attrs, :provider, provider)) + Integrations.create_integration( + organization.id, + attrs |> Map.put(:provider, provider) |> Map.put(:enabled, true) + ) integration -> Integrations.update_integration(integration, attrs)