diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-03-01 16:48:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 16:48:58 +0100 |
commit | 50ea54b3ed125477656893a67d9f552bb53e8ba5 (patch) | |
tree | 2de909d2659dc46e90de9b60f0b6b660e074b0c2 /app/workers | |
parent | 233f7e6174947c28ee2d388713c0a58ca9ebb21e (diff) |
Change authorized applications page (#17656)
* Change authorized applications page * Hide revoke button for superapps and suspended accounts * Clean up db/schema.rb
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/scheduler/ip_cleanup_scheduler.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/workers/scheduler/ip_cleanup_scheduler.rb b/app/workers/scheduler/ip_cleanup_scheduler.rb index adc99c605..7afad2f58 100644 --- a/app/workers/scheduler/ip_cleanup_scheduler.rb +++ b/app/workers/scheduler/ip_cleanup_scheduler.rb @@ -18,6 +18,7 @@ class Scheduler::IpCleanupScheduler 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(sign_up_ip: nil) LoginActivity.where('created_at < ?', IP_RETENTION_PERIOD.ago).in_batches.destroy_all + Doorkeeper::AccessToken.where('last_used_at < ?', IP_RETENTION_PERIOD.ago).in_batches.update_all(last_used_ip: nil) end def clean_expired_ip_blocks! |