Skip to content

Commit

Permalink
fix findings parsing logic introduced by pr 292
Browse files Browse the repository at this point in the history
Signed-off-by: Subhobrata Dey <sbcd90@gmail.com>
  • Loading branch information
sbcd90 committed Oct 20, 2022
1 parent d86f413 commit db6085a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ class FindingWithDocs : BaseModel {

override fun toXContent(builder: XContentBuilder, params: ToXContent.Params): XContentBuilder {
builder.startObject()
.startObject("finding_with_docs")
.field(FINDING_FIELD, finding)
.field(DOCUMENTS_FIELD, documents.toTypedArray())
.endObject()
builder.endObject()
return builder
}
Expand Down

0 comments on commit db6085a

Please sign in to comment.