Skip to content

Commit 13935ee

Browse files
committed
#127 Serialize observable report summaries when searching for an observable list
1 parent 1db057e commit 13935ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thehive-backend/app/controllers/Artifact.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class ArtifactCtrl @Inject() (
9595
val withStats = request.body.getBoolean("nstats").getOrElse(false)
9696

9797
val (artifacts, total) = artifactSrv.find(query, range, sort)
98-
val artifactWithCase = auxSrv(artifacts, nparent, withStats, true)
98+
val artifactWithCase = auxSrv(artifacts, nparent, withStats, false)
9999
renderer.toOutput(OK, artifactWithCase, total)
100100
}
101101

@@ -117,4 +117,4 @@ class ArtifactCtrl @Inject() (
117117
val aggs = request.body.getValue("stats").getOrElse(throw BadRequestError("Parameter \"stats\" is missing")).as[Seq[Agg]]
118118
artifactSrv.stats(query, aggs).map(s Ok(s))
119119
}
120-
}
120+
}

0 commit comments

Comments
 (0)