Replace usage of `answer` in `before_destroy` of Reaction with `parent`

This commit is contained in:
Karina Kwiatek 2022-03-26 18:37:55 +01:00 committed by Karina Kwiatek
parent f9ec11a616
commit 5ba3fed56c
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class Appendable::Reaction < Appendable
before_destroy do
Notification.denotify parent.user, self unless parent.user == user
user.decrement! :smiled_count
answer.decrement! :smile_count
parent.decrement! :smile_count
end
def notification_type(*_args)