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)) ) }