🗑️ Clean up the cloud file table unused fields
This commit is contained in:
@@ -216,6 +216,7 @@ public class FileIndexController(
|
||||
&& f.IsMarkedRecycle == recycled
|
||||
&& !db.FileIndexes.Any(fi => fi.FileId == f.Id && fi.AccountId == accountId)
|
||||
)
|
||||
.Include(f => f.Object)
|
||||
.AsQueryable();
|
||||
|
||||
// Apply sorting
|
||||
|
||||
@@ -167,6 +167,7 @@ public class FileIndexService(AppDatabase db)
|
||||
return await db.FileIndexes
|
||||
.Where(fi => fi.AccountId == accountId)
|
||||
.Include(fi => fi.File)
|
||||
.ThenInclude(f => f.Object)
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user