fix type
This commit is contained in:
parent
454952d9dd
commit
ff4e41b932
|
|
@ -45,7 +45,7 @@ class QueryBuilder:
|
|||
|
||||
type_parsed = getattr(PlaylistTypesEnum, playlist_type.upper()).value
|
||||
|
||||
return {"match": {"playlist_types": type_parsed}}
|
||||
return {"match": {"playlist_type": type_parsed}}
|
||||
|
||||
def parse_sort(self) -> dict:
|
||||
"""return sort"""
|
||||
|
|
|
|||
|
|
@ -27,4 +27,4 @@ def test_parse_type():
|
|||
qb.parse_type("invalid")
|
||||
|
||||
result = qb.parse_type("custom")
|
||||
assert result == {"match": {"playlist_type.keyword": "custom"}}
|
||||
assert result == {"match": {"playlist_type": "custom"}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue