diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-16 22:39:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-16 22:39:35 +0100 |
commit | a85912b0d6d2ee68aa35794fbb51c5358768c092 (patch) | |
tree | af0dde21359576102ab8dcf8a1dc3342f67bb71c /app/workers/scheduler/ip_cleanup_scheduler.rb | |
parent | 07cb948f39464b11959fc506b673a90d9524e519 (diff) | |
parent | 278bd61d6f507e56350e7f14caaeaa954700ecd8 (diff) |
Merge pull request #1659 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/workers/scheduler/ip_cleanup_scheduler.rb')
-rw-r--r-- | app/workers/scheduler/ip_cleanup_scheduler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/scheduler/ip_cleanup_scheduler.rb b/app/workers/scheduler/ip_cleanup_scheduler.rb index 918c10ac9..adc99c605 100644 --- a/app/workers/scheduler/ip_cleanup_scheduler.rb +++ b/app/workers/scheduler/ip_cleanup_scheduler.rb @@ -16,7 +16,7 @@ class Scheduler::IpCleanupScheduler def clean_ip_columns! SessionActivation.where('updated_at < ?', IP_RETENTION_PERIOD.ago).in_batches.destroy_all - User.where('current_sign_in_at < ?', IP_RETENTION_PERIOD.ago).in_batches.update_all(last_sign_in_ip: nil, current_sign_in_ip: nil, sign_up_ip: nil) + User.where('current_sign_in_at < ?', IP_RETENTION_PERIOD.ago).in_batches.update_all(sign_up_ip: nil) LoginActivity.where('created_at < ?', IP_RETENTION_PERIOD.ago).in_batches.destroy_all end |