From 9b10094ea0fb1edb11a424c5d75c185f88b7fa60 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 10 Jan 2022 21:50:35 +0100 Subject: [PATCH] Fixed an ef core warning in muteservice --- src/NadekoBot/Modules/Administration/Mute/MuteService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Administration/Mute/MuteService.cs b/src/NadekoBot/Modules/Administration/Mute/MuteService.cs index a520f1879..73bfb3623 100644 --- a/src/NadekoBot/Modules/Administration/Mute/MuteService.cs +++ b/src/NadekoBot/Modules/Administration/Mute/MuteService.cs @@ -42,7 +42,8 @@ public class MuteService : INService { var guildIds = client.Guilds.Select(x => x.Id).ToList(); var configs = uow.Set() - .AsQueryable() + .AsNoTracking() + .AsSplitQuery() .Include(x => x.MutedUsers) .Include(x => x.UnbanTimer) .Include(x => x.UnmuteTimers)