FIX: process_post job should update baked_at and baked_version if it rebakes the post

This commit is contained in:
Neil Lalonde 2018-02-05 11:46:53 -05:00
parent 130974d58d
commit 8fe61c68a1
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module Jobs
cooking_options = args[:cooking_options] || {} cooking_options = args[:cooking_options] || {}
cooking_options[:topic_id] = post.topic_id cooking_options[:topic_id] = post.topic_id
recooked = post.cook(post.raw, cooking_options.symbolize_keys) recooked = post.cook(post.raw, cooking_options.symbolize_keys)
post.update_column(:cooked, recooked) post.update_columns(cooked: recooked, baked_at: Time.zone.now, baked_version: Post::BAKED_VERSION)
end end
cp = CookedPostProcessor.new(post, args) cp = CookedPostProcessor.new(post, args)