mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Allow a custom message part for the periodic query task
This commit is contained in:
@ -106,6 +106,7 @@ object PeriodicDueItemsTask {
|
||||
ctx.args.account,
|
||||
ctx.args.baseUrl,
|
||||
items,
|
||||
None,
|
||||
limit,
|
||||
now
|
||||
)(cont)
|
||||
|
@ -143,6 +143,7 @@ object PeriodicQueryTask {
|
||||
ctx.args.account,
|
||||
ctx.args.baseUrl,
|
||||
items,
|
||||
ctx.args.contentStart,
|
||||
limit,
|
||||
now
|
||||
)(cont)
|
||||
|
@ -45,6 +45,7 @@ trait TaskOperations {
|
||||
account: AccountId,
|
||||
baseUrl: Option[LenientUri],
|
||||
items: Vector[ListItem],
|
||||
contentStart: Option[String],
|
||||
limit: Int,
|
||||
now: Timestamp
|
||||
)(cont: EventContext => F[Unit]): F[Unit] =
|
||||
@ -52,7 +53,7 @@ trait TaskOperations {
|
||||
case Some(nel) =>
|
||||
val more = items.size >= limit
|
||||
val eventCtx = ItemSelectionCtx(
|
||||
Event.ItemSelection(account, nel.map(_.id), more, baseUrl),
|
||||
Event.ItemSelection(account, nel.map(_.id), more, baseUrl, contentStart),
|
||||
ItemSelectionCtx.Data
|
||||
.create(account, items, baseUrl, more, now)
|
||||
)
|
||||
|
Reference in New Issue
Block a user