From 6a9dc556bcedbdcedafba9787e105b9df04f0cc4 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Mon, 12 Jul 2021 14:23:07 -0500 Subject: [PATCH] DEV: DiscourseEvent for category updated (#13707) --- app/controllers/categories_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rb index 8ba80d6cfda..b60b1a2956b 100644 --- a/app/controllers/categories_controller.rb +++ b/app/controllers/categories_controller.rb @@ -163,6 +163,10 @@ class CategoriesController < ApplicationController end end + if result + DiscourseEvent.trigger(:category_updated, cat) + end + result end end