Files: fix count

This commit is contained in:
pavelbannov 2020-09-28 13:41:48 +03:00
parent ecd18e2a13
commit c593620865

View File

@ -806,7 +806,7 @@ namespace ASC.Files.Helpers
var startIndex = Convert.ToInt32(ApiContext.StartIndex);
return FolderContentWrapperHelper.Get(FileStorageService.GetFolderItems(folderId,
startIndex,
Convert.ToInt32(ApiContext.Count) - 1, //NOTE: in ApiContext +1
Convert.ToInt32(ApiContext.Count),
filterType,
filterType == FilterType.ByUser,
userIdOrGroupId.ToString(),