mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Hooking the new pubsub impl into the application
This commit is contained in:
@ -79,8 +79,12 @@ object RPubSub {
|
||||
)
|
||||
)
|
||||
|
||||
def findSubs(topic: String): ConnectionIO[List[LenientUri]] =
|
||||
run(select(T.url), from(T), T.topic === topic && T.counter > 0)
|
||||
def findSubs(topic: String, excludeNode: Ident): ConnectionIO[List[LenientUri]] =
|
||||
run(
|
||||
select(T.url),
|
||||
from(T),
|
||||
T.topic === topic && T.counter > 0 && T.nodeId <> excludeNode
|
||||
)
|
||||
.query[LenientUri]
|
||||
.to[List]
|
||||
}
|
||||
|
Reference in New Issue
Block a user