fixed some lint issues and function name

This commit is contained in:
Mark Beamer Jr 2018-10-21 00:06:39 -04:00
parent b4052fc921
commit a409396f69
No known key found for this signature in database
GPG key ID: 1C314FB89AD76973

View file

@ -235,17 +235,16 @@ function getFilters (input) {
if (filters.length > 0) { if (filters.length > 0) {
const filterQuery = { const filterQuery = {
'nested': { 'nested': {
'path': 'value', 'path' : 'value',
'query': { 'query': {
'bool': { 'bool': {
'must': filters, 'must': filters,
} },
} },
} },
}; };
return filterQuery; return filterQuery;
} } else {
else {
return []; return [];
} }
} }
@ -261,7 +260,7 @@ function getAutoComplete (query) {
query: { query: {
bool: { bool: {
must : getAutoCompleteQuery(query), must : getAutoCompleteQuery(query),
filter: getFilter(query), filter: getFilters(query),
}, },
}, },
}, },