Skip to content

Commit

Permalink
#982 Fix file observable creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed May 29, 2019
1 parent 847b464 commit b45fcf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thehive-backend/app/controllers/ArtifactCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class ArtifactCtrl @Inject()(
.map {
case FileInputValue(_, filepath, _) if fields.getBoolean("isZip").getOrElse(false)
Future.successful(getFieldsFromZipFile(caseId, fields, filepath))
case _: FileInputValue Future.successful(Seq(fields))
case JsonInputValue(JsArray(attachments))
Future.traverse(attachments)(attachment getFieldsFromAttachment(fields, attachment)).map(_.flatten)
case JsonInputValue(attachment) getFieldsFromAttachment(fields, attachment)
Expand Down

0 comments on commit b45fcf9

Please sign in to comment.