Skip to content

Commit

Permalink
#1279 Convert entity type in Cortex responder call
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 21, 2020
1 parent 4e4736f commit 65e1260
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ActionSrv @Inject() (
case None => Future.failed(NotFoundError(s"Responder $workerId not found"))
}
(label, tlp, pap) <- Future.fromTry(db.roTransaction(implicit graph => entityHelper.entityInfo(entity)))
inputCortexAction = CortexAction(label, writes.writes(entity), s"thehive:${entity._model.label}", tlp, pap, parameters)
inputCortexAction = CortexAction(label, writes.writes(entity), s"thehive:${fromObjectType(entity._model.label)}", tlp, pap, parameters)
job <- client.execute(workerId, inputCortexAction)
action = Action(
job.workerId,
Expand Down

0 comments on commit 65e1260

Please sign in to comment.