FIX: process_post job should update baked_at and baked_version if it rebakes the post
This commit is contained in:
parent
130974d58d
commit
8fe61c68a1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue