Files: fix long operation

This commit is contained in:
pavelbannov 2020-12-01 12:29:08 +03:00
parent 88117bcd00
commit f1f1ae818e

View File

@ -270,6 +270,9 @@ namespace ASC.Web.Files.Services.WCFService.FileOperations
CurrentTenant = fileOperationData.Tenant;
using var scope = ServiceProvider.CreateScope();
var tenantManager = scope.ServiceProvider.GetService<TenantManager>();
tenantManager.SetCurrentTenant(CurrentTenant);
var daoFactory = scope.ServiceProvider.GetService<IDaoFactory>();
FolderDao = daoFactory.GetFolderDao<TId>();