mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Provide tasks with ability to return data and human message
To allow better communication from background tasks, tasks can return not only data (json), but also a human readable message which is send via notification channels
This commit is contained in:
@ -43,7 +43,7 @@ object FileRepositoryRoutes {
|
||||
resp <- Ok(result)
|
||||
} yield resp
|
||||
|
||||
case req @ POST -> Root / "integrityCheckAll" =>
|
||||
case req @ POST -> Root / "integrityCheck" =>
|
||||
for {
|
||||
input <- req.as[FileKeyPart]
|
||||
job <- backend.fileRepository.checkIntegrityAll(input, true)
|
||||
|
Reference in New Issue
Block a user