remoteStorage OAuth #109

Merged
raucao merged 24 commits from feature/rs-oauth into master 2023-08-04 08:55:29 +00:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit 645abac810 - Show all commits

View File

@@ -1,5 +1,5 @@
class ExpireRemoteStorageAuthorizationJob < ApplicationJob
queue_as :remote_storage
class RemoteStorageExpireAuthorizationJob < ApplicationJob
queue_as :remotestorage
def perform(rs_auth_id)
rs_auth = RemoteStorageAuthorization.find rs_auth_id

View File

@@ -53,11 +53,11 @@ class RemoteStorageAuthorization < ApplicationRecord
.perform_later(id)
end
def remove_token_expiry_job
queue = Sidekiq::Queue.new(ExpireRemoteStorageAuthorizationJob.queue_name)
queue.each do |job|
next unless job.display_class == "ExpireRemoteStorageAuthorizationJob"
job.delete if job.display_args == [id]
def remove_token_expiry_job
queue = Sidekiq::Queue.new(RemoteStorageExpireAuthorizationJob.queue_name)
queue.each do |job|
next unless job.display_class == "RemoteStorageExpireAuthorizationJob"
job.delete if job.display_args == [id]
end
end
end
end