fix eslint warnigs for core project (#7506)

This commit is contained in:
Denys Vuika
2022-02-17 14:35:33 +00:00
committed by GitHub
parent 5b7f255eec
commit bca5a783ab
246 changed files with 5127 additions and 5065 deletions

View File

@@ -29,12 +29,13 @@ export class SearchConfigurationService implements SearchConfigurationInterface
/**
* Generates a QueryBody object with custom search parameters.
*
* @param searchTerm Term text to search for
* @param maxResults Maximum number of search results to show in a page
* @param skipCount The offset of the start of the page within the results list
* @returns Query body defined by the parameters
*/
public generateQueryBody(searchTerm: string, maxResults: number, skipCount: number): QueryBody {
generateQueryBody(searchTerm: string, maxResults: number, skipCount: number): QueryBody {
const defaultQueryBody: QueryBody = {
query: {
query: searchTerm ? `'${searchTerm}*' OR name:'${searchTerm}*'` : searchTerm
@@ -42,7 +43,7 @@ export class SearchConfigurationService implements SearchConfigurationInterface
include: ['path', 'allowableOperations'],
paging: {
maxItems: maxResults,
skipCount: skipCount
skipCount
},
filterQueries: [
{ query: `TYPE:'cm:folder' OR TYPE:'cm:content'` },