From 2be92d503e912c4fcf8d6b193965b872934e11ea Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 2 Jun 2025 21:34:47 +0800 Subject: [PATCH] :bug: Ah bug fixes --- DysonNetwork.Sphere/Storage/FileService.ReferenceMigration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DysonNetwork.Sphere/Storage/FileService.ReferenceMigration.cs b/DysonNetwork.Sphere/Storage/FileService.ReferenceMigration.cs index 692b66c..87a73ef 100644 --- a/DysonNetwork.Sphere/Storage/FileService.ReferenceMigration.cs +++ b/DysonNetwork.Sphere/Storage/FileService.ReferenceMigration.cs @@ -36,7 +36,7 @@ public class FileReferenceMigrationService(AppDatabase db) .Include(p => p.OutdatedAttachments) .ToListAsync(); - var attachmentsId = posts.SelectMany(p => p.OutdatedAttachments.Select(a => a.Id)).ToList(); + var attachmentsId = posts.SelectMany(p => p.Attachments.Select(a => a.Id)).ToList(); var attachments = await db.Files.Where(f => attachmentsId.Contains(f.Id)).ToDictionaryAsync(x => x.Id);