mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +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)
|
|> Multi.update(:account, account)
|
||||||
|> Repo.transaction()
|
|> Repo.transaction()
|
||||||
|> case do
|
|> case do
|
||||||
{:ok, %{account: %{name: new_name}}} ->
|
{:ok, %{account: %{name: new_name} = account}} ->
|
||||||
spawn(fn ->
|
spawn(fn ->
|
||||||
Images.user_name_reindex(old_name, new_name)
|
Images.user_name_reindex(old_name, new_name)
|
||||||
Comments.user_name_reindex(old_name, new_name)
|
Comments.user_name_reindex(old_name, new_name)
|
||||||
|
|
Loading…
Reference in a new issue