Skip to content

Commit

Permalink
#2292 Set updateAt and updateBy in v0 of Alert
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Dec 16, 2021
1 parent f0b14a4 commit 949bf36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions thehive/app/org/thp/thehive/controllers/v0/Conversion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ object Conversion {
.withFieldComputed(_.customFields, rc => JsObject(rc.customFields.map(cf => cf.name -> Json.obj(cf.typeName -> cf.toJson))))
.withFieldRenamed(_._createdAt, _.createdAt)
.withFieldRenamed(_._createdBy, _.createdBy)
.withFieldRenamed(_._updatedAt, _.updatedAt)
.withFieldRenamed(_._updatedBy, _.updatedBy)
.withFieldComputed(_._id, _._id.toString)
.withFieldComputed(_.id, _._id.toString)
.withFieldComputed(_.id, _._id.toString)
Expand Down Expand Up @@ -81,6 +83,8 @@ object Conversion {
.withFieldComputed(_.id, _._id.toString)
.withFieldRenamed(_._createdAt, _.createdAt)
.withFieldRenamed(_._createdBy, _.createdBy)
.withFieldRenamed(_._updatedAt, _.updatedAt)
.withFieldRenamed(_._updatedBy, _.updatedBy)
.withFieldConst(_._type, "alert")
.withFieldComputed(_.tags, _.tags.toSet)
.withFieldComputed(_.`case`, _.caseId.map(_.toString))
Expand Down

0 comments on commit 949bf36

Please sign in to comment.