Syntax
This commit is contained in:
parent
325b24c6a9
commit
d93ebdf8ed
1 changed files with 2 additions and 2 deletions
|
@ -262,12 +262,12 @@ function getFilters (input) {
|
|||
filters.push(nsfwFilter);
|
||||
}
|
||||
if (input.contentType !== undefined) {
|
||||
const contentTypes = input.contentType.split(",");
|
||||
const contentTypes = input.contentType.split(',');
|
||||
const contentFilter = {'terms': {'value.stream.source.contentType.keyword': contentTypes}};
|
||||
filters.push(contentFilter);
|
||||
}
|
||||
if (input.mediaType !== undefined) {
|
||||
const mediaTypes = input.mediaType.split(",");
|
||||
const mediaTypes = input.mediaType.split(',');
|
||||
const possibleTypes = ['audio', 'video', 'text', 'application', 'image'];
|
||||
const shouldQueries = [];
|
||||
for (var i = 0; i < mediaTypes.length; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue