Skip to content

Commit

Permalink
#462 Use maxSimilarCases to find similar cases of an alert
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Feb 5, 2018
1 parent 0ac275f commit 0a63be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive-backend/app/services/AlertSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class AlertSrv(
similarArtifacts(artifact)
.getOrElse(Source.empty)
}
.groupBy(100, _.parentId)
.groupBy(maxSimilarCases, _.parentId)
.map {
case a if a.ioc() (a.parentId.getOrElse(sys.error("Artifact without case !")), 1, 1)
case a (a.parentId.getOrElse(sys.error("Artifact without case !")), 0, 1)
Expand Down

0 comments on commit 0a63be9

Please sign in to comment.