jobs: migrate pool category updates to ActiveJob.

This commit is contained in:
evazion
2019-08-16 20:49:34 -05:00
parent 4e8b3d9310
commit 24eb1b155f
3 changed files with 13 additions and 3 deletions

View File

@@ -291,7 +291,7 @@ class Pool < ApplicationRecord
def update_category_pseudo_tags_for_posts_async
if saved_change_to_category?
delay(:queue => "default").update_category_pseudo_tags_for_posts
UpdatePoolPseudoTagsJob.perform_later(self)
end
end