12 lines
200 B
Ruby
12 lines
200 B
Ruby
# 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
|