mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Make sure the empty-trash task is started for all collectives
This commit is contained in:
@ -6,8 +6,8 @@
|
||||
|
||||
package docspell.common
|
||||
|
||||
import com.github.eikek.calev.CalEvent
|
||||
import docspell.common.syntax.all._
|
||||
|
||||
import io.circe._
|
||||
import io.circe.generic.semiauto._
|
||||
|
||||
@ -21,7 +21,7 @@ case class EmptyTrashArgs(
|
||||
) {
|
||||
|
||||
def makeSubject: String =
|
||||
"Empty trash "
|
||||
"Empty trash"
|
||||
|
||||
}
|
||||
|
||||
@ -29,6 +29,8 @@ object EmptyTrashArgs {
|
||||
|
||||
val taskName = Ident.unsafe("empty-trash")
|
||||
|
||||
val defaultSchedule = CalEvent.unsafe("*-*-1/7 03:00:00")
|
||||
|
||||
implicit val jsonEncoder: Encoder[EmptyTrashArgs] =
|
||||
deriveEncoder[EmptyTrashArgs]
|
||||
implicit val jsonDecoder: Decoder[EmptyTrashArgs] =
|
||||
|
Reference in New Issue
Block a user