Fixed sort fields
MODIFY
src/server/rest/v1/service/UserService.ts
src/server/rest/v1/service/UserService.ts
@@ -398,7 +398,7 @@ export default class UserService {
limit: filteredRequest.Limit,
onlyRecordCount: filteredRequest.OnlyRecordCount,
skip: filteredRequest.Skip,
- sort: filteredRequest.SortFields
+ sort: UtilsService.httpSortFieldsToMongoDB(filteredRequest.SortFields)
},
authorizationUserInErrorFilters.projectFields
);
@@ -793,7 +793,7 @@ export default class UserService {
{
limit: filteredRequest.Limit,
skip: filteredRequest.Skip,
- sort: filteredRequest.SortFields,
+ sort: UtilsService.httpSortFieldsToMongoDB(filteredRequest.SortFields),
onlyRecordCount: filteredRequest.OnlyRecordCount
},
authorizationUsersFilters.projectFields

Fixed sort fields