From c30ccceadebc856547708bfb573153f3693c3d5f Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 27 Dec 2017 13:51:16 +1100 Subject: [PATCH] correct params --- app/models/post.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index 485db2d7000..8312129479f 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -482,9 +482,10 @@ class Post < ActiveRecord::Base problems << { post: p, ex: e } attempts = p.custom_fields["rebake_attempts"].to_i + if attempts > 3 p.update_columns(baked_version: BAKED_VERSION) - Discourse.warn_exception(e, "Can not rebake post# #{p.id} after 3 attempts, giving up") + Discourse.warn_exception(e, message: "Can not rebake post# #{p.id} after 3 attempts, giving up") else p.custom_fields["rebake_attempts"] = attempts + 1 p.save_custom_fields