Class: Launchpad::IEO::SaleCurrencyListWorker
- Inherits:
-
Object
- Object
- Launchpad::IEO::SaleCurrencyListWorker
- Includes:
- Sidekiq::Worker
- Defined in:
- app/workers/launchpad/ieo/sale_currency_list_worker.rb
Instance Method Summary collapse
Instance Method Details
#perform(sgid) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/workers/launchpad/ieo/sale_currency_list_worker.rb', line 7 def perform(sgid) sale = GlobalID::Locator.locate_signed(sgid, for: "sale_currency_list") sale.list_currency Rails.logger.info { "Successfully listed #{sale.currency_id} for sale #{sale.id}" } rescue ManagementAPIV2::Exception => e Rails.logger.error sale_pair_id: sale.id, message: "Failed to list", error: e. end |