Skip to content

Commit

Permalink
#1652 Return the log on update
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 17, 2020
1 parent 3e82fdd commit 01ed145
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion thehive/app/org/thp/thehive/controllers/v0/LogCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ class LogCtrl @Inject() (
.can(Permissions.manageTask),
propertyUpdaters
)
.map(_ => Results.NoContent)
.flatMap {
case (logs, _) =>
logs
.richLog
.getOrFail("Log")
.map(richLog => Results.Ok(richLog.toJson))
}
}

def delete(logId: String): Action[AnyContent] =
Expand Down

0 comments on commit 01ed145

Please sign in to comment.