From 06c2e28bbb76a6bba94717d87ac2f796e3de542b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 29 Nov 2019 17:12:06 +0000 Subject: [PATCH] DEV: Remove two more references to instagram_user_infos Follow-up to ad6f33e5b12c7d9bc8ee58003ae65fa60cee1dd2 --- app/services/user_anonymizer.rb | 1 - spec/services/user_anonymizer_spec.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/app/services/user_anonymizer.rb b/app/services/user_anonymizer.rb index 99c7dc6dd46..bb5bd3f7054 100644 --- a/app/services/user_anonymizer.rb +++ b/app/services/user_anonymizer.rb @@ -64,7 +64,6 @@ class UserAnonymizer @user.single_sign_on_record.try(:destroy) @user.oauth2_user_infos.try(:destroy_all) @user.user_associated_accounts.try(:destroy_all) - @user.instagram_user_info.try(:destroy) @user.user_open_ids.find_each { |x| x.destroy } @user.api_keys.find_each { |x| x.try(:destroy) } @user.user_emails.secondary.destroy_all diff --git a/spec/services/user_anonymizer_spec.rb b/spec/services/user_anonymizer_spec.rb index bd58710b645..36ec4f0b779 100644 --- a/spec/services/user_anonymizer_spec.rb +++ b/spec/services/user_anonymizer_spec.rb @@ -210,7 +210,6 @@ describe UserAnonymizer do expect(user.user_associated_accounts).to be_empty expect(user.single_sign_on_record).to eq(nil) expect(user.oauth2_user_infos).to be_empty - expect(user.instagram_user_info).to eq(nil) expect(user.user_open_ids.count).to eq(0) end