2021-03-11 07:30:15 +01:00
|
|
|
# frozen_string_literal: true
|
2019-05-11 17:53:37 +02:00
|
|
|
module Jobs
|
2019-10-03 07:17:21 +02:00
|
|
|
class RefreshApiAccessToken < ::Jobs::Base
|
2019-05-11 17:53:37 +02:00
|
|
|
def execute(args)
|
2019-06-07 05:09:31 +02:00
|
|
|
CustomWizard::Api::Authorization.get_token(args[:name], refresh: true)
|
2019-05-11 17:53:37 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|