Class: Workers::ChangeError

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/workers/change_error.rb

Instance Method Summary collapse

Instance Method Details

#perform(sync_log_id, message) ⇒ Object


5
6
7
8
# File 'lib/workers/change_error.rb', line 5

def perform(sync_log_id, message)
  response = trogdir.error(sync_log_id: sync_log_id, message: message).perform
  raise "Error: #{response.parse['error']}" unless response.success?
end