From 2f0c5fb276fa3620bed3d9f402f6ccae831f90f4 Mon Sep 17 00:00:00 2001 From: sabihoshi Date: Fri, 14 Oct 2022 19:04:01 +0800 Subject: [PATCH] refactor: Culling --- HuTao.Culling/Program.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/HuTao.Culling/Program.cs b/HuTao.Culling/Program.cs index 541fa1e..ee847ce 100644 --- a/HuTao.Culling/Program.cs +++ b/HuTao.Culling/Program.cs @@ -18,11 +18,7 @@ public async Task CullMessagesInternalAsync(DateTimeOffset oldest) var messageSet = _db!.Set(); Log.Information("Getting messages to delete"); var messages = await messageSet - .Include(m => m.Embeds) - .Include(m => m.Components) - .Include(m => m.Attachments) .Where(m => oldest > m.LogDate) - .Take(10000) .OrderBy(m => m.LogDate) .ToListAsync(); Log.Information("Culling messages older than {Oldest}, total {Count}", oldest, messages.Count);