mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
match correct format in badge image update (derpibooru/philomena#217)
This commit is contained in:
parent
51a0033f3c
commit
9f9a4c1967
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue