1
0
mirror of synced 2026-08-07 02:37:14 +00:00

Merge pull request #38 from angusmcleod/feature/accept-unaccept-server-event

Add accept and unaccept solution events
This commit is contained in:
Sam
2017-01-20 09:24:13 -05:00
committed by GitHub
+4
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