Skip to content

Commit

Permalink
#110 Fix error in job type
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 26, 2018
1 parent e32249b commit 7694fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/org/thp/cortex/services/JobSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@ class JobSrv(
"file" file.toString,
"filename" job.attachment().get.name,
"contentType" job.attachment().get.contentType)
case None if job.data().nonEmpty && job.tpe == WorkerType.responder
case None if job.data().nonEmpty && job.tpe() == WorkerType.responder
Json.obj("data" Json.parse(job.data().get))
case None if job.data().nonEmpty && job.tpe == WorkerType.analyzer
case None if job.data().nonEmpty && job.tpe() == WorkerType.analyzer
Json.obj("data" job.data().get)
}
.map { artifact
Expand Down

0 comments on commit 7694fca

Please sign in to comment.