Skip to content

Commit

Permalink
Update TransportGetFindingsSearchAction.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Annie Lee committed Mar 21, 2022
1 parent 0c2b133 commit 34e4c9e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ class TransportGetFindingsSearchAction @Inject constructor(
XContentParserUtils.ensureExpectedToken(XContentParser.Token.START_OBJECT, xcp.nextToken(), xcp)
// TODO: Remove debug log
log.info("Adding new finding with id: $id")
val finding = Finding.parse(xcp, id)
// TODO: Search the document with doc_id
val doc_id = finding.relatedDocId
log.info("doc_id: $doc_id")
findings.add(Finding.parse(xcp, id))
}
actionListener.onResponse(GetFindingsSearchResponse(RestStatus.OK, totalFindingCount, findings))
Expand Down

0 comments on commit 34e4c9e

Please sign in to comment.