Skip to content

Commit

Permalink
#1271 remove old impact status before set a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 21, 2020
1 parent 75a9e90 commit 95b6827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thehive/app/org/thp/thehive/services/CaseSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ class CaseSrv @Inject() (
`case`: Case with Entity,
impactStatus: ImpactStatus with Entity
)(implicit graph: Graph, authContext: AuthContext): Try[Unit] = {
get(`case`).unsetImpactStatus()
caseImpactStatusSrv.create(CaseImpactStatus(), `case`, impactStatus)
auditSrv.`case`.update(`case`, Json.obj("impactStatus" -> impactStatus.value))
}
Expand Down

0 comments on commit 95b6827

Please sign in to comment.