Skip to content

Commit

Permalink
#1264 Update caseId on merged tasks and observables
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Mar 12, 2021
1 parent 5833d46 commit 2ea4414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions thehive/app/org/thp/thehive/services/CaseSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ class CaseSrv @Inject() (
_ <-
get(c)
.alert
.update(_.caseId, Some(richCase._id))
.toSeq
.toTry(alertSrv.alertCaseSrv.create(AlertCase(), _, richCase.`case`))
_ <-
Expand Down Expand Up @@ -402,6 +403,7 @@ class CaseSrv @Inject() (
get(fromCase)
.share(org._id)
.tasks
.update(_.relatedId, mergedCase._id)
.richTask
.toSeq
.toTry(shareSrv.shareTask(_, mergedCase, org._id))
Expand All @@ -417,6 +419,7 @@ class CaseSrv @Inject() (
get(fromCase)
.share(org._id)
.observables
.update(_.relatedId, mergedCase._id)
.richObservable
.toSeq
.toTry(shareSrv.shareObservable(_, mergedCase, org._id))
Expand Down

0 comments on commit 2ea4414

Please sign in to comment.