Skip to content

Commit

Permalink
rename processInnerHits params
Browse files Browse the repository at this point in the history
  • Loading branch information
charmingduchess committed Sep 10, 2024
1 parent 949ad54 commit 38d7e01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/response_massager.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class ResponseMassager {
*
* Also copies ".total" properties into convenient places for serialization.
*/
processInnerHitsProperties (response, allItemsBibQuery) {
processInnerHitsProperties (response, sortOnEnumerationChronology) {
response.hits.hits.forEach((hit) => {
if (allItemsBibQuery) {
if (sortOnEnumerationChronology) {
hit._source.items.sort((a, b) => a.enumerationChronology_sort[0] > b.enumerationChronology_sort[0] ? -1 : 1)
}
// Process "items" inner_hits
Expand Down

0 comments on commit 38d7e01

Please sign in to comment.