mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
remove unused columns from wipe
This commit is contained in:
parent
2347d018ca
commit
fefd73f3bd
1 changed files with 1 additions and 7 deletions
|
@ -33,13 +33,7 @@ defmodule Philomena.UserWipe do
|
|||
|
||||
User
|
||||
|> where(id: ^user.id)
|
||||
|> Repo.update_all(
|
||||
set: [
|
||||
email: "deactivated#{random_hex}@example.com",
|
||||
current_sign_in_ip: @wipe_ip,
|
||||
last_sign_in_ip: @wipe_ip
|
||||
]
|
||||
)
|
||||
|> Repo.update_all(set: [email: "deactivated#{random_hex}@example.com"])
|
||||
end
|
||||
|
||||
defp in_batches(queryable, mapper) do
|
||||
|
|
Loading…
Reference in a new issue