Skip to content

Commit

Permalink
Update search-service/src/main/kotlin/com/egm/stellio/search/temporal…
Browse files Browse the repository at this point in the history
…/util/TemporalQueryUtils.kt

Co-authored-by: Thomas Bousselin <[email protected]>
  • Loading branch information
ranim-n and thomasBousselin authored Jan 3, 2025
1 parent 7863668 commit 98144cc
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ fun composeTemporalEntitiesQueryFromGet(
hasValueInQueryParam(formatParam, QueryParamValue.TEMPORAL_VALUES) ||
hasValueInQueryParam(optionsParam, QueryParamValue.TEMPORAL_VALUES)

val withAggregatedValues = when {
hasValueInQueryParam(formatParam, QueryParamValue.AGGREGATED_VALUES) -> true
hasValueInQueryParam(optionsParam, QueryParamValue.AGGREGATED_VALUES) -> true
else -> false
}
val withTemporalValues =
hasValueInQueryParam(formatParam, QueryParamValue.TEMPORAL_VALUES) ||
hasValueInQueryParam(optionsParam, QueryParamValue.TEMPORAL_VALUES)
val withAudit = hasValueInQueryParam(
Optional.ofNullable(requestParams.getFirst(QueryParameter.OPTIONS.key)),
QueryParamValue.AUDIT
Expand Down

0 comments on commit 98144cc

Please sign in to comment.