Fix ProcessReferencesWorker error for tasks before update
This commit is contained in:
parent
2f21aa5193
commit
75c0e512f4
3 changed files with 21 additions and 4 deletions
|
@ -3,8 +3,8 @@
|
|||
class ProcessReferencesWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(status_id, ids, urls, no_fetch_urls)
|
||||
ProcessReferencesService.new.call(Status.find(status_id), ids || [], urls: urls || [], no_fetch_urls: no_fetch_urls)
|
||||
def perform(status_id, ids, urls, no_fetch_urls: nil)
|
||||
ProcessReferencesService.new.call(Status.find(status_id), ids || [], urls: urls || [], no_fetch_urls: no_fetch_urls || [])
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue