Merge branch 'feature/files' of github.com:ONLYOFFICE/AppServer into feature/files

This commit is contained in:
Alexey 2020-07-13 16:00:51 +03:00
commit 41f59c9130

View File

@ -68,21 +68,25 @@ class FilesFilter {
toDto = () => {
const {
authorType,
filterType,
folder,
page,
pageCount,
search,
sortBy,
sortOrder,
filterType,
withSubfolders,
search,
authorType
withSubfolders
} = this;
const isFilterSet = (filterType || (search ?? "").trim() || authorType) ? withSubfolders : false;
const userIdOrGroupId = authorType && authorType.includes('_') ? authorType.slice(authorType.indexOf('_') + 1) : null;
let dtoFilter = {
folder: folder,
pagecount: pageCount,
startIndex: this.getStartIndex(),
count: pageCount,
page: page,
sortby: sortBy,
sortOrder: sortOrder,
filterType: filterType,