Skip to content

Commit

Permalink
Update RestGetFindingsSearchAction.kt
Browse files Browse the repository at this point in the history
Signed-off-by: Annie Lee <[email protected]>
  • Loading branch information
Annie Lee committed Mar 10, 2022
1 parent 53206e8 commit 4fc8aee
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RestGetFindingsSearchAction : BaseRestHandler() {
}

override fun prepareRequest(request: RestRequest, client: NodeClient): RestChannelConsumer {
log.debug("${request.method()} ${request.path()}")
log.info("${request.method()} ${request.path()}")

val findingID: String? = request.param("findingID")

Expand All @@ -44,7 +44,6 @@ class RestGetFindingsSearchAction : BaseRestHandler() {
srcContext = FetchSourceContext.DO_NOT_FETCH_SOURCE
}

val sortString = request.param("sortString", "finding.name.keyword")
val sortOrder = request.param("sortOrder", "asc")
val missing: String? = request.param("missing")
val size = request.paramAsInt("size", 20)
Expand All @@ -53,7 +52,6 @@ class RestGetFindingsSearchAction : BaseRestHandler() {

val table = Table(
sortOrder,
sortString,
missing,
size,
startIndex,
Expand Down

0 comments on commit 4fc8aee

Please sign in to comment.