🐛 Fix file migration

This commit is contained in:
2026-01-12 23:55:57 +08:00
parent 87d9267285
commit 0feb66e341

View File

@@ -12,7 +12,6 @@ public class FileMigrationService(AppDatabase db, ILogger<FileMigrationService>
var cloudFiles = await db.Files
.Where(f =>
f.ObjectId == null &&
f.StorageId != null &&
f.PoolId != null &&
!db.FileObjects.Any(fo => fo.Id == f.Id)
)