From 4cf02da8e6c74955dc86b7655bbb1f195e01da43 Mon Sep 17 00:00:00 2001 From: Luna D Date: Wed, 21 Oct 2020 19:02:34 +0200 Subject: [PATCH] stupidity 2: episode 2 --- lib/philomena/users.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/users.ex b/lib/philomena/users.ex index 2e4704db..e9c96554 100644 --- a/lib/philomena/users.ex +++ b/lib/philomena/users.ex @@ -603,7 +603,7 @@ defmodule Philomena.Users do |> Multi.update(:account, account) |> Repo.transaction() |> case do - {:ok, %{account: %{name: new_name}}} -> + {:ok, %{account: %{name: new_name} = account}} -> spawn(fn -> Images.user_name_reindex(old_name, new_name) Comments.user_name_reindex(old_name, new_name)