Fix case match

This commit is contained in:
Liam 2024-08-15 23:01:34 -04:00
parent 74120d7522
commit 2e1808b00f

View file

@ -34,7 +34,7 @@ defmodule PhilomenaWeb.Admin.AdvertController do
|> put_flash(:info, "Advert was successfully created.") |> put_flash(:info, "Advert was successfully created.")
|> redirect(to: ~p"/admin/adverts") |> redirect(to: ~p"/admin/adverts")
{:error, :advert, changeset, _changes} -> {:error, changeset} ->
render(conn, "new.html", changeset: changeset) render(conn, "new.html", changeset: changeset)
end end
end end