Skip to content

Commit a4440c4

Browse files
committed
#96 Set default value of Case.tlp to AMBER
1 parent a2df75e commit a4440c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thehive-backend/app/models/Case.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ trait CaseAttributes { _: AttributeDef ⇒
4646
val endDate = optionalAttribute("endDate", F.dateFmt, "Resolution date")
4747
val tags = multiAttribute("tags", F.stringFmt, "Case tags")
4848
val flag = attribute("flag", F.booleanFmt, "Flag of the case", false)
49-
val tlp = attribute("tlp", F.numberFmt, "TLP level", -1L)
49+
val tlp = attribute("tlp", F.numberFmt, "TLP level", 2L)
5050
val status = attribute("status", F.enumFmt(CaseStatus), "Status of the case", CaseStatus.Open)
5151
val metrics = optionalAttribute("metrics", F.metricsFmt, "List of metrics")
5252
val resolutionStatus = optionalAttribute("resolutionStatus", F.enumFmt(CaseResolutionStatus), "Resolution status of the case")
@@ -162,4 +162,4 @@ class CaseModel @Inject() (
162162
"handlingDuration" "doc['endDate'].value - doc['startDate'].value")
163163
}
164164

165-
class Case(model: CaseModel, attributes: JsObject) extends EntityDef[CaseModel, Case](model, attributes) with CaseAttributes
165+
class Case(model: CaseModel, attributes: JsObject) extends EntityDef[CaseModel, Case](model, attributes) with CaseAttributes

0 commit comments

Comments
 (0)