Skip to content

Commit

Permalink
#1427 Include ioc count in observable count in alert similarities (fi…
Browse files Browse the repository at this point in the history
…x type)
  • Loading branch information
To-om committed Jul 9, 2020
1 parent 809cf84 commit 0c14a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/controllers/v0/AlertCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class AlertCtrl @Inject() (
val similarCase = case0
.asInstanceOf[Case]
.into[OutputSimilarCase]
.withFieldConst(_.artifactCount, observableCount.asScala.values.map(_.toLong).sum)
.withFieldConst(_.artifactCount, observableCount.asScala.values.map(_.toInt).sum)
.withFieldConst(_.iocCount, observableCount.getOrDefault(true, 0L).toInt)
.withFieldConst(_.similarArtifactCount, iocStats.values.sum)
.withFieldConst(_.similarIOCCount, iocStats.getOrElse(true, 0))
Expand Down

0 comments on commit 0c14a0f

Please sign in to comment.