Skip to content

Commit

Permalink
fix(signage/playlists): name field sort
Browse files Browse the repository at this point in the history
needs to be a keyword field for sorting
  • Loading branch information
stakach committed Aug 18, 2024
1 parent 68407c7 commit e374a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos-rest-api/controllers/signage/playlists.cr
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module PlaceOS::Api
"authority_id" => [authority.id.as(String)],
})
query.search_field "name"
query.sort({"name" => {order: :asc}})
query.sort(NAME_SORT_ASC)
paginate_results(elastic, query)
end

Expand Down

0 comments on commit e374a03

Please sign in to comment.