From fefd73f3bd564fecc6947cdfacf1460d669ca08b Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 31 Aug 2020 20:51:22 -0400 Subject: [PATCH] remove unused columns from wipe --- lib/philomena/user_wipe.ex | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/philomena/user_wipe.ex b/lib/philomena/user_wipe.ex index a00b519b..a8b96085 100644 --- a/lib/philomena/user_wipe.ex +++ b/lib/philomena/user_wipe.ex @@ -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