Fix iqdb update/remove jobs

This commit is contained in:
Kira 2019-07-30 21:05:27 -07:00
parent e9f6ec4fd9
commit 684b249709

View File

@ -1785,14 +1785,14 @@ class Post < ApplicationRecord
def remove_iqdb(post_id)
if iqdb_enabled?
IQDBRemoveJob.perform_async(post_id)
IQDBRemoveJob.perform_async(id)
end
end
end
def update_iqdb_async
if Post.iqdb_enabled? && has_preview?
IQDBUpdateJob.perform_async(post_id, preview_file_url)
IQDBUpdateJob.perform_async(id, preview_file_url)
end
end