correct params

This commit is contained in:
Sam 2017-12-27 13:51:16 +11:00
parent 0c834515a9
commit c30ccceade

View File

@ -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