Skip to content

Commit

Permalink
#1635 Fix computed propertied in dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 13, 2020
1 parent 8b75e0e commit 5d21299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/services/th3/Aggregation.scala
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ case class AggAvg(aggName: Option[String], fieldName: String) extends Aggregatio
traversal: Traversal.Unk,
authContext: AuthContext
): Traversal.Domain[Output[_]] = {
val fieldPath = FPath(fieldName)
val fieldPath = if (fieldName.startsWith("computed")) FPathElem(fieldName) else FPath(fieldName)
val property = publicProperties
.get[Traversal.UnkD, Traversal.UnkDU](fieldPath, traversalType)
.getOrElse(throw BadRequestError(s"Property $fieldName for type $traversalType not found"))
Expand Down

0 comments on commit 5d21299

Please sign in to comment.