🐛 Fix file migration
This commit is contained in:
@@ -12,7 +12,6 @@ public class FileMigrationService(AppDatabase db, ILogger<FileMigrationService>
|
|||||||
var cloudFiles = await db.Files
|
var cloudFiles = await db.Files
|
||||||
.Where(f =>
|
.Where(f =>
|
||||||
f.ObjectId == null &&
|
f.ObjectId == null &&
|
||||||
f.StorageId != null &&
|
|
||||||
f.PoolId != null &&
|
f.PoolId != null &&
|
||||||
!db.FileObjects.Any(fo => fo.Id == f.Id)
|
!db.FileObjects.Any(fo => fo.Id == f.Id)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user