Implement notify-due-items task

This commit is contained in:
Eike Kettner
2020-04-21 21:43:05 +02:00
parent e7b81c701f
commit 2723d6b43b
11 changed files with 215 additions and 10 deletions

View File

@ -125,6 +125,26 @@ object QItem {
dueDateTo: Option[Timestamp]
)
object Query {
def empty(collective: Ident): Query =
Query(
collective,
None,
Seq.empty,
None,
None,
None,
None,
None,
Nil,
Nil,
None,
None,
None,
None
)
}
def findItems(q: Query): Stream[ConnectionIO, ListItem] = {
val IC = RItem.Columns
val AC = RAttachment.Columns