Watching Categories based on on group in discourse

So teaching myself rails tonight!

Breaking down the plugin I did some testing.

Category.find_by_slug(“site-feedback”) doesn’t seem to work, I get a nil return

but if I do

Category.find_by(slug: “site-feedback”) appears to return data.

I made these changes on the plugin and appears to working..

Here’s my code, I’m going to be updating / tweaking it through the night to fit my site needs.