[deploy] Only Calculate Comment Score on Update and Create (#7574)
This commit is contained in:
parent
d910945c74
commit
2d7f4acbbe
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class Comment < ApplicationRecord
|
|||
after_create :notify_slack_channel_about_warned_users
|
||||
after_create :after_create_checks
|
||||
after_create_commit :record_field_test_event
|
||||
after_commit :calculate_score
|
||||
after_commit :calculate_score, on: %i[create update]
|
||||
after_update_commit :update_notifications, if: proc { |comment| comment.saved_changes.include? "body_markdown" }
|
||||
after_save :bust_cache
|
||||
after_save :synchronous_bust
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue