Allow to immediately expire auth via job
When running the job before its schedule
This commit is contained in:
parent
ee5c6d86d0
commit
906468d156
@ -3,8 +3,6 @@ class RemoteStorageExpireAuthorizationJob < ApplicationJob
|
|||||||
|
|
||||||
def perform(rs_auth_id)
|
def perform(rs_auth_id)
|
||||||
rs_auth = RemoteStorageAuthorization.find 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!
|
rs_auth.destroy!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user