Skip to content

Commit

Permalink
#1766 Added patternId property to procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
rriclet committed Feb 15, 2021
1 parent 683f108 commit 189868c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thehive/app/org/thp/thehive/controllers/v1/Properties.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import org.thp.thehive.services.LogOps._
import org.thp.thehive.services.ObservableOps._
import org.thp.thehive.services.OrganisationOps._
import org.thp.thehive.services.PatternOps._
import org.thp.thehive.services.ProcedureOps._
import org.thp.thehive.services.ShareOps._
import org.thp.thehive.services.TagOps._
import org.thp.thehive.services.TaskOps._
Expand Down Expand Up @@ -367,6 +368,7 @@ class Properties @Inject() (
.property("description", UMapping.string)(_.field.updatable)
.property("occurDate", UMapping.date)(_.field.updatable)
.property("tactic", UMapping.string)(_.field.updatable)
.property("patternId", UMapping.string)(_.select(_.pattern.value(_.patternId)).readonly)
.build

lazy val profile: PublicProperties =
Expand Down

0 comments on commit 189868c

Please sign in to comment.