remove find backup files
This commit is contained in:
parent
7af24dc759
commit
45ab3bcc5f
@ -248,10 +248,6 @@ public class MigrationCreator
|
||||
private List<IGrouping<string, BackupFileInfo>> GetFilesGroup(Guid id)
|
||||
{
|
||||
var files = GetFilesToProcess(id).ToList();
|
||||
|
||||
var backupsContext = _dbFactory.CreateDbContext<BackupsContext>();
|
||||
var exclude = backupsContext.Backups.AsQueryable().Where(b => b.TenantId == _tenant && b.StorageType == 0 && b.StoragePath != null).ToList();
|
||||
files = files.Where(f => !exclude.Any(e => f.Path.Replace('\\', '/').Contains($"/file_{e.StoragePath}/"))).ToList();
|
||||
|
||||
return files.GroupBy(file => file.Module).ToList();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user