🐛 Bug fixes
This commit is contained in:
parent
0550c4f6de
commit
2691c5d9ac
@ -34,7 +34,6 @@ public class FileReferenceMigrationService(AppDatabase db)
|
|||||||
{
|
{
|
||||||
var posts = await db.Posts
|
var posts = await db.Posts
|
||||||
.Include(p => p.OutdatedAttachments)
|
.Include(p => p.OutdatedAttachments)
|
||||||
.Where(p => p.OutdatedAttachments.Any())
|
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
var attachmentsId = posts.SelectMany(p => p.OutdatedAttachments.Select(a => a.Id)).ToList();
|
var attachmentsId = posts.SelectMany(p => p.OutdatedAttachments.Select(a => a.Id)).ToList();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user