This commit is contained in:
Simon 2025-07-12 22:41:08 +07:00
parent 454952d9dd
commit ff4e41b932
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 2 additions and 2 deletions

View File

@ -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"""

View File

@ -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"}}