Add a file-repository for better organizing files

Docspell now must use a new api for accessing files.

Issue: #1379
This commit is contained in:
eikek
2022-02-13 12:08:01 +01:00
parent 3dcb113cef
commit 553b1fa249
40 changed files with 451 additions and 232 deletions

View File

@ -15,7 +15,7 @@ import docspell.backend.ops.OItemSearch.{AttachmentData, AttachmentPreviewData}
import docspell.backend.ops._
import docspell.restapi.model.BasicResult
import docspell.restserver.http4s.{QueryParam => QP}
import docspell.store.records.RFileMeta
import docspell.store.file.FileMetadata
import org.http4s._
import org.http4s.circe.CirceEntityEncoder._
@ -117,7 +117,7 @@ object BinaryUtil {
}
def matchETag[F[_]](
fileData: Option[RFileMeta],
fileData: Option[FileMetadata],
noneMatch: Option[NonEmptyList[EntityTag]]
): Boolean =
(fileData, noneMatch) match {