remove unused columns from wipe

This commit is contained in:
byte[] 2020-08-31 20:51:22 -04:00
parent 2347d018ca
commit fefd73f3bd

View file

@ -33,13 +33,7 @@ defmodule Philomena.UserWipe do
User User
|> where(id: ^user.id) |> where(id: ^user.id)
|> Repo.update_all( |> Repo.update_all(set: [email: "deactivated#{random_hex}@example.com"])
set: [
email: "deactivated#{random_hex}@example.com",
current_sign_in_ip: @wipe_ip,
last_sign_in_ip: @wipe_ip
]
)
end end
defp in_batches(queryable, mapper) do defp in_batches(queryable, mapper) do