mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Fix case match
This commit is contained in:
parent
74120d7522
commit
2e1808b00f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue