mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Make sure the empty-trash task is started for all collectives
This commit is contained in:
@ -185,7 +185,7 @@ object OCollective {
|
||||
None,
|
||||
EmptyTrashArgs(coll)
|
||||
)
|
||||
_ <- uts.updateOneTask(AccountId(coll, EmptyTrashArgs.taskName), ut)
|
||||
_ <- uts.updateOneTask(AccountId(coll, coll), ut)
|
||||
_ <- joex.notifyAllNodes
|
||||
} yield ()
|
||||
|
||||
@ -215,7 +215,7 @@ object OCollective {
|
||||
CalEvent(WeekdayComponent.All, DateEvent.All, TimeEvent.All),
|
||||
None,
|
||||
EmptyTrashArgs(collective)
|
||||
).encode.toPeriodicTask(AccountId(collective, EmptyTrashArgs.taskName))
|
||||
).encode.toPeriodicTask(AccountId(collective, collective))
|
||||
job <- ut.toJob
|
||||
_ <- queue.insert(job)
|
||||
_ <- joex.notifyAllNodes
|
||||
|
Reference in New Issue
Block a user