Skip to content

Commit

Permalink
Merge branch 'Aggregation-updates' of https://github.com/wellcomecoll…
Browse files Browse the repository at this point in the history
…ection/catalogue-api into Aggregation-updates
  • Loading branch information
StepanBrychta committed Nov 26, 2024
2 parents 2557c3f + c12a980 commit 498bbea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,3 @@ class ElasticsearchService(elasticClient: ElasticClient)(implicit
)
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,12 @@ object WorksRequestBuilder
)
}

private def dateOrder(implicit
searchOptions: WorkSearchOptions
): Option[SortingOrder] =
searchOptions.sortBy collectFirst { case ProductionDateSortRequest =>
searchOptions.sortOrder
private def dateOrder(
implicit
searchOptions: WorkSearchOptions): Option[SortingOrder] =
searchOptions.sortBy collectFirst {
case ProductionDateSortRequest =>
searchOptions.sortOrder
}

val buildWorkFilterQuery: PartialFunction[WorkFilter, Query] = {
Expand Down

0 comments on commit 498bbea

Please sign in to comment.