diff --git a/thehive/app/org/thp/thehive/services/AlertSrv.scala b/thehive/app/org/thp/thehive/services/AlertSrv.scala index f4927bde2d..49c91f328d 100644 --- a/thehive/app/org/thp/thehive/services/AlertSrv.scala +++ b/thehive/app/org/thp/thehive/services/AlertSrv.scala @@ -417,10 +417,9 @@ object AlertOps { ) .by( _.selectValues - .unfold .project( - _.by(_.groupCount(_.byValue(_.ioc))) - .by(_.groupCount(_.by(_.typeName))) + _.by(_.unfold.groupCount(_.byValue(_.ioc))) + .by(_.unfold.groupCount(_.by(_.typeName))) ) ) )