fix unmatches clause

This commit is contained in:
Luna D 2021-11-12 19:51:24 +01:00
parent 4f561b9c16
commit 0f1b5644c1
No known key found for this signature in database
GPG key ID: 81AF416F2CC36FC8

View file

@ -62,7 +62,7 @@ defmodule PhilomenaWeb.Admin.UserController do
{:ok, user} -> {:ok, user} ->
conn conn
|> put_flash(:info, "User successfully updated.") |> put_flash(:info, "User successfully updated.")
|> moderation_log(details: &log_details/3, data: user) |> moderation_log(details: &log_details/3, data: user.user)
|> redirect(to: Routes.profile_path(conn, :show, conn.assigns.user)) |> redirect(to: Routes.profile_path(conn, :show, conn.assigns.user))
{:error, %{user: changeset}} -> {:error, %{user: changeset}} ->