Merge remote-tracking branch 'origin/main' into with_authors
This commit is contained in:
commit
8b4621ddfb
|
@ -156,8 +156,8 @@ function getFilterQuery(filter: DittoFilter): EventQuery {
|
|||
/** Combine filter queries into a single union query. */
|
||||
function getFiltersQuery(filters: DittoFilter[]) {
|
||||
return filters
|
||||
.map(getFilterQuery)
|
||||
.reduce((result, query) => result.union(query));
|
||||
.map((filter) => db.selectFrom(() => getFilterQuery(filter).as('events')).selectAll())
|
||||
.reduce((result, query) => result.unionAll(query));
|
||||
}
|
||||
|
||||
interface DittoEvent<K extends number = number> extends Event<K> {
|
||||
|
|
Loading…
Reference in New Issue