diff --git a/app/jobs/remote_storage_expire_authorization_job.rb b/app/jobs/remote_storage_expire_authorization_job.rb index 62c240c..209c463 100644 --- a/app/jobs/remote_storage_expire_authorization_job.rb +++ b/app/jobs/remote_storage_expire_authorization_job.rb @@ -3,8 +3,6 @@ class RemoteStorageExpireAuthorizationJob < ApplicationJob def perform(rs_auth_id) rs_auth = RemoteStorageAuthorization.find rs_auth_id - return unless rs_auth.expire_at.nil? || rs_auth.expire_at <= DateTime.now - rs_auth.destroy! end end