Skip to content

Commit

Permalink
#1891 Update caseId in alert when merge to existing case
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Mar 26, 2021
1 parent 85c3081 commit 468c092
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thehive/app/org/thp/thehive/services/AlertSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ class AlertSrv @Inject() (
_ <- importCustomFields(alert, `case`)
_ <- caseSrv.addTags(`case`, alert.tags.toSet)
_ <- alertCaseSrv.create(AlertCase(), alert, `case`)
_ <- get(alert).update(_.caseId, Some(`case`._id)).getOrFail("Alert")
c <- caseSrv.get(`case`).update(_.description, description).getOrFail("Case")
details <- Success(
Json.obj(
Expand Down

0 comments on commit 468c092

Please sign in to comment.