diff --git a/app/models/channel.rb b/app/models/channel.rb index 4c3d7b9..c2730fb 100644 --- a/app/models/channel.rb +++ b/app/models/channel.rb @@ -37,7 +37,7 @@ class DiscourseChat::Channel < DiscourseChat::PluginModel end check_unique = false - matching_channels = DiscourseChat::Channel.all + matching_channels = DiscourseChat::Channel.where.not(id: id) data.each do |key, value| regex_string = params.find{|p| p[:key] == key}[:regex]