diff --git a/Procfile.dev b/Procfile.dev index 2b0b260f..c46f84c1 100644 --- a/Procfile.dev +++ b/Procfile.dev @@ -1,3 +1,4 @@ web: bin/rails server -p 3000 +workers: bundle exec sidekiq js: yarn build --watch css: yarn build:css --watch diff --git a/app/sidekiq/upload_files_from_dropbox_job.rb b/app/sidekiq/upload_files_from_dropbox_job.rb index 97abe055..3d7b1d99 100644 --- a/app/sidekiq/upload_files_from_dropbox_job.rb +++ b/app/sidekiq/upload_files_from_dropbox_job.rb @@ -10,6 +10,7 @@ def perform(token) client = DropboxApi::Client.new(token) files_list = client.list_folder("/COMIX files") store.products.each do |product| + next if product.file_attachment.present? puts product.name comic_result = files_list.entries.select { |entry| entry.name.include?(product.name) } next if comic_result.blank?