Skip to content

Commit

Permalink
Improve "feed updated" service notification
Browse files Browse the repository at this point in the history
  • Loading branch information
jerodsanto committed Apr 5, 2024
1 parent e10d3de commit f5d67f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/changelog_web/feeds.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ defmodule ChangelogWeb.Feeds do
defp notify_services(feed_or_slug) do
feed_url =
case feed_or_slug do
%Feed{} -> ~p"/feeds/#{feed_or_slug.slug}"
_else -> url(~p"/#{feed_or_slug}/feed")
%Feed{slug: slug} -> url(~p"/feeds/#{slug}")
slug -> url(~p"/#{slug}/feed")
end

Fastly.purge(feed_url)
Expand Down

0 comments on commit f5d67f0

Please sign in to comment.