Websites/app/jobs/iqdb_update_job.rb

12 lines
200 B
Ruby
Raw Normal View History

2024-10-13 06:04:55 +00:00
# frozen_string_literal: true
class IqdbUpdateJob < ApplicationJob
queue_as :iqdb
def perform(id)
image = APIImage.find(id)
return if image.blank?
Iqdb.update_image(image)
end
end