diff options
-rw-r--r-- | app/workers/fetch_reply_worker.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/workers/fetch_reply_worker.rb b/app/workers/fetch_reply_worker.rb index d7d11a9d3..b93ac6c7a 100644 --- a/app/workers/fetch_reply_worker.rb +++ b/app/workers/fetch_reply_worker.rb @@ -7,6 +7,10 @@ class FetchReplyWorker sidekiq_options queue: 'pull', retry: 3 def perform(child_url) - FetchRemoteStatusService.new.call(child_url, nil) + if child_url.is_a?(String) + FetchRemoteStatusService.new.call(child_url, nil) + elsif child_url.is_a?(Enumerable) + child_url.each { |url| FetchRemoteStatusService.new.call(url, nil) } + end end end |