fix: use atom for Ecto.Enum alert_type in activity feed query

This commit is contained in:
Graham McIntire 2026-02-13 19:52:29 -06:00
parent 0fc36524b4
commit 12b1a64f8d

View file

@ -167,7 +167,7 @@ defmodule Towerops.ActivityFeed do
left_join: s in Site,
on: s.id == d.site_id,
where: d.organization_id == ^org_id,
where: a.alert_type == "device_down",
where: a.alert_type == :device_down,
select: %{
id: a.id,
timestamp: a.triggered_at,