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. */
|
/** Combine filter queries into a single union query. */
|
||||||
function getFiltersQuery(filters: DittoFilter[]) {
|
function getFiltersQuery(filters: DittoFilter[]) {
|
||||||
return filters
|
return filters
|
||||||
.map(getFilterQuery)
|
.map((filter) => db.selectFrom(() => getFilterQuery(filter).as('events')).selectAll())
|
||||||
.reduce((result, query) => result.union(query));
|
.reduce((result, query) => result.unionAll(query));
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DittoEvent<K extends number = number> extends Event<K> {
|
interface DittoEvent<K extends number = number> extends Event<K> {
|
||||||
|
|
Loading…
Reference in New Issue