Merge branch 'feature/files' of https://github.com/ONLYOFFICE/CommunityServer-AspNetCore into feature/files

This commit is contained in:
Nikita Gopienko 2020-05-06 12:57:28 +03:00
commit a2d1ab38eb
2 changed files with 2 additions and 12 deletions

View File

@ -926,6 +926,8 @@ namespace ASC.Files.Core.Data
tx.Commit(); //Commit changes tx.Commit(); //Commit changes
} }
FilesDbContext.SaveChanges();
return newFolderId; return newFolderId;
} }

View File

@ -2015,18 +2015,6 @@ namespace ASC.Web.Files.Services.WCFService
} }
} }
private static void ParseArrayItems(Dictionary<string, string> items, out Dictionary<object, string> folders, out Dictionary<object, string> files)
{
//TODO:!!!!Fix
folders = new Dictionary<object, string>();
files = new Dictionary<object, string>();
foreach (var item in (items ?? new Dictionary<string, string>()))
{
if (item.Key.StartsWith("file_")) files.Add(item.Key.Substring("file_".Length), item.Value);
if (item.Key.StartsWith("folder_")) folders.Add(item.Key.Substring("folder_".Length), item.Value);
}
}
private static void ErrorIf(bool condition, string errorMessage) private static void ErrorIf(bool condition, string errorMessage)
{ {
if (condition) throw new InvalidOperationException(errorMessage); if (condition) throw new InvalidOperationException(errorMessage);