match correct format in badge image update (derpibooru/philomena#217)

This commit is contained in:
byte[] 2020-10-26 21:45:51 -04:00
parent 51a0033f3c
commit 9f9a4c1967

View file

@ -14,7 +14,7 @@ defmodule PhilomenaWeb.Admin.Badge.ImageController do
def update(conn, %{"badge" => badge_params}) do
case Badges.update_badge_image(conn.assigns.badge, badge_params) do
{:ok, %{badge: _badge}} ->
{:ok, _badge} ->
conn
|> put_flash(:info, "Badge updated successfully.")
|> redirect(to: Routes.admin_badge_path(conn, :index))