Replace usage of `answer` in `before_destroy` of Reaction with `parent`
This commit is contained in:
parent
f9ec11a616
commit
5ba3fed56c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue