From 8fe61c68a13e5ae8ce1107adadc0c655d2dd1a41 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 5 Feb 2018 11:46:53 -0500 Subject: [PATCH] FIX: process_post job should update baked_at and baked_version if it rebakes the post --- app/jobs/regular/process_post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/regular/process_post.rb b/app/jobs/regular/process_post.rb index 88e340501a4..6c8b4e7d2f9 100644 --- a/app/jobs/regular/process_post.rb +++ b/app/jobs/regular/process_post.rb @@ -17,7 +17,7 @@ module Jobs cooking_options = args[:cooking_options] || {} cooking_options[:topic_id] = post.topic_id 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 cp = CookedPostProcessor.new(post, args)