From 6f87452ab00c141ca75d56845b5e3ead498df37c Mon Sep 17 00:00:00 2001 From: To-om Date: Thu, 7 Jan 2021 17:52:22 +0100 Subject: [PATCH] #1734 Fix mean return type --- ScalliGraph | 2 +- thehive/app/org/thp/thehive/services/th3/Aggregation.scala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ScalliGraph b/ScalliGraph index e9b3180098..acc3bea235 160000 --- a/ScalliGraph +++ b/ScalliGraph @@ -1 +1 @@ -Subproject commit e9b31800985bc83dd8cda20496f42a96d5236f21 +Subproject commit acc3bea235989e57f8b43fd0780f6905437cc9e2 diff --git a/thehive/app/org/thp/thehive/services/th3/Aggregation.scala b/thehive/app/org/thp/thehive/services/th3/Aggregation.scala index 358d5a744b..79d89cf159 100644 --- a/thehive/app/org/thp/thehive/services/th3/Aggregation.scala +++ b/thehive/app/org/thp/thehive/services/th3/Aggregation.scala @@ -186,7 +186,8 @@ case class AggAvg(aggName: Option[String], fieldName: String) extends Aggregatio property .select(fieldPath, t, authContext) .mean - .domainMap(avg => Output(Json.obj(name -> avg.asInstanceOf[Double]))), + .domainMap(avg => Output(Json.obj(name -> avg))) + .asInstanceOf[Traversal.Domain[Output[_]]], Output(Json.obj(name -> JsNull)) ) }