Skip to content

Commit

Permalink
#205 Make observable tags unique when cases are merged
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 16, 2017
1 parent 358a149 commit 55e5078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive-backend/app/services/CaseMergeSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class CaseMergeSrv @Inject() (
.set("message", concat[Artifact](sameArtifacts, "\n \n", a caseMap(a.parentId.get).caseId(), _.message()))
.set("startDate", firstDate(sameArtifacts.map(_.startDate())))
.set("tlp", JsNumber(sameArtifacts.map(_.tlp()).min))
.set("tags", JsArray(sameArtifacts.flatMap(_.tags()).map(JsString)))
.set("tags", JsArray(sameArtifacts.flatMap(_.tags()).distinct.map(JsString)))
.set("ioc", JsBoolean(sameArtifacts.map(_.ioc()).reduce(_ || _)))
.set("status", mergeArtifactStatus(sameArtifacts))
// Merged artifact is created under new case
Expand Down

0 comments on commit 55e5078

Please sign in to comment.