fix: use atom for Ecto.Enum alert_type in activity feed query
This commit is contained in:
parent
0fc36524b4
commit
12b1a64f8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue