The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 regels
327 B

  1. class ThreadResolveWorker
  2. include Sidekiq::Worker
  3. def perform(child_status_id, parent_url)
  4. child_status = Status.find(child_status_id)
  5. parent_status = FetchRemoteStatusService.new.call(parent_url)
  6. unless parent_status.nil?
  7. child_status.thread = parent_status
  8. child_status.save!
  9. end
  10. end
  11. end