diff --git a/app/jobs/uri_collection_job.rb b/app/jobs/uri_collection_job.rb index 59f753ec..4cbbf593 100644 --- a/app/jobs/uri_collection_job.rb +++ b/app/jobs/uri_collection_job.rb @@ -109,7 +109,7 @@ class UriCollectionJob < PeriodicJob # # TODO: Cambiar al mergear origin-referer def destinations - @destinations ||= site.deploys.map(&:destination).select do |d| + @destinations ||= site.deploys.map(&:destination).compact.select do |d| File.directory?(d) end.map do |d| File.realpath(d)