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) {
const filterQuery = {
'nested': {
'path': 'value',
'path' : 'value',
'query': {
'bool': {
'must': filters,
}
}
}
},
},
},
};
return filterQuery;
}
else {
} else {
return [];
}
}
@ -261,7 +260,7 @@ function getAutoComplete (query) {
query: {
bool: {
must : getAutoCompleteQuery(query),
filter: getFilter(query),
filter: getFilters(query),
},
},
},