mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
stupidity 2: episode 2
This commit is contained in:
parent
3090bf7adc
commit
4cf02da8e6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue