mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Merge pull request #2380 from eikek/custom-processing-data
Custom processing data
This commit is contained in:
@ -19,6 +19,8 @@ import docspell.scheduler.{Job, JobStore}
|
||||
import docspell.store.Store
|
||||
import docspell.store.records._
|
||||
|
||||
import io.circe.Json
|
||||
|
||||
trait OUpload[F[_]] {
|
||||
|
||||
def submit(
|
||||
@ -69,7 +71,8 @@ object OUpload {
|
||||
tags: List[String],
|
||||
language: Option[Language],
|
||||
attachmentsOnly: Option[Boolean],
|
||||
flattenArchives: Option[Boolean]
|
||||
flattenArchives: Option[Boolean],
|
||||
customData: Option[Json]
|
||||
)
|
||||
|
||||
case class UploadData[F[_]](
|
||||
@ -157,7 +160,8 @@ object OUpload {
|
||||
data.meta.fileFilter.some,
|
||||
data.meta.tags.some,
|
||||
false,
|
||||
data.meta.attachmentsOnly
|
||||
data.meta.attachmentsOnly,
|
||||
data.meta.customData
|
||||
)
|
||||
args = ProcessItemArgs(meta, files.toList)
|
||||
jobs <- right(
|
||||
|
Reference in New Issue
Block a user