From 2e1808b00fb3425bc87979189b813f2daf4d317d Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 15 Aug 2024 23:01:34 -0400 Subject: [PATCH] Fix case match --- lib/philomena_web/controllers/admin/advert_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/admin/advert_controller.ex b/lib/philomena_web/controllers/admin/advert_controller.ex index e058ce26..12b1dfbe 100644 --- a/lib/philomena_web/controllers/admin/advert_controller.ex +++ b/lib/philomena_web/controllers/admin/advert_controller.ex @@ -34,7 +34,7 @@ defmodule PhilomenaWeb.Admin.AdvertController do |> put_flash(:info, "Advert was successfully created.") |> redirect(to: ~p"/admin/adverts") - {:error, :advert, changeset, _changes} -> + {:error, changeset} -> render(conn, "new.html", changeset: changeset) end end