stupidity 2: episode 2

This commit is contained in:
Luna D 2020-10-21 19:02:34 +02:00
parent 3090bf7adc
commit 4cf02da8e6
No known key found for this signature in database
GPG key ID: E1A46CE9C03638A6

View file

@ -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)