mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	Possible fix for the filterservice duplicate key bug
This commit is contained in:
		@@ -50,7 +50,7 @@ public sealed class FilterService : IExecOnMessage
 | 
				
			|||||||
                new(configs.SelectMany(gc => gc.FilterLinksChannelIds.Select(fci => fci.ChannelId)));
 | 
					                new(configs.SelectMany(gc => gc.FilterLinksChannelIds.Select(fci => fci.ChannelId)));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            var dict = configs.ToDictionary(gc => gc.GuildId,
 | 
					            var dict = configs.ToDictionary(gc => gc.GuildId,
 | 
				
			||||||
                gc => new ConcurrentHashSet<string>(gc.FilteredWords.Select(fw => fw.Word)));
 | 
					                gc => new ConcurrentHashSet<string>(gc.FilteredWords.Select(fw => fw.Word).Distinct()));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            ServerFilteredWords = new(dict);
 | 
					            ServerFilteredWords = new(dict);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user