From 1b572829d3ed0ed5ca0fe48aa17e4fa29165509d Mon Sep 17 00:00:00 2001 From: To-om Date: Fri, 20 Nov 2020 15:04:25 +0100 Subject: [PATCH] #1625 Fix similarity when several observables match --- thehive/app/org/thp/thehive/services/AlertSrv.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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))) ) ) )