format postkeepermanager jobs in job listing

This commit is contained in:
Albert Yi
2018-05-10 09:40:36 -07:00
parent 0ae9230caa
commit 1c76e7b5b1
2 changed files with 6 additions and 6 deletions

View File

@@ -1,9 +1,6 @@
module DelayedJobsHelper
def print_name(job)
case job.name
when "PostKeeperManager.check_and_assign"
"<strong>update post tagger</strong>"
when "Tag.increment_post_counts"
"<strong>increment post counts</strong>"
@@ -64,6 +61,9 @@ module DelayedJobsHelper
when "BulkRevert#process"
"<strong>bulk revert</strong>"
when "PostKeeperManager.check_and_update"
"<strong>update top tagger</strong>"
else
h(job.name)
end
@@ -131,8 +131,8 @@ module DelayedJobsHelper
when "BulkRevert#process"
h(job.payload_object.args.join(" "))
else
h(job.handler)
when "PostKeeperManager.check_and_update"
h(job.payload_object.args[0])
end
end
end

View File

@@ -567,7 +567,7 @@ class Post < ApplicationRecord
PostKeeperManager.check_and_assign(self, CurrentUser.id, increment_tags)
# run this again async to check for race conditions
PostKeeperManager.queue_check(self, CurrentUser.id)
PostKeeperManager.queue_check(id, CurrentUser.id)
end
end