A platform for community discussion. Free, open, simple.
Add missing safe navigation operator
Vinoth Kannanfb784142298e
diff --git a/app/models/web_hook.rb b/app/models/web_hook.rbindex b72a3b7a0dd..dc8a21da327 100644--- a/app/models/web_hook.rb+++ b/app/models/web_hook.rb@@ -73,7 +73,7 @@ class WebHook < ActiveRecord::BaseWebHook.enqueue_hooks(:topic, event,id: topic.id,category_id: topic&.category_id,- tag_ids: topic&.tags.pluck(:id),+ tag_ids: topic&.tags&.pluck(:id),payload: payload)end@@ -86,7 +86,7 @@ class WebHook < ActiveRecord::BaseWebHook.enqueue_hooks(:post, event,id: post.id,category_id: post&.topic&.category_id,- tag_ids: post&.topic&.tags.pluck(:id),+ tag_ids: post&.topic&.tags&.pluck(:id),payload: payload)end