Add accept and unaccept solution events

This commit is contained in:
Angus McLeod 2017-01-20 09:13:58 -05:00
parent d7b9e47231
commit 1c7a4e4178
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,8 @@ after_initialize do
)
end
DiscourseEvent.trigger(:accepted_solution, post)
render json: success_json
end
@ -79,6 +81,8 @@ after_initialize do
notification.destroy if notification
DiscourseEvent.trigger(:unaccepted_solution, post)
render json: success_json
end