Skip to content

Commit

Permalink
change url
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed Jun 7, 2024
1 parent 8e9e223 commit db435f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/alerts/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ defmodule Alerts.Repo do
# It should be removed once alerts support image URLs.
defp maybe_attach_image_url(alert) do
if is_nil(alert.image_url) do
this_month = Timex.format!(Timex.now(), "%Y-%m", :strftime)
image_url = "/sites/default/files/media/#{this_month}/alert-#{alert.id}.png"
image_url = "/sites/default/files/diversion-diagrams/alert-#{alert.id}.png"

Map.put(alert, :image_url, image_url)
else
Expand Down

0 comments on commit db435f6

Please sign in to comment.