db/events: getFiltersQuery, break to multiple lines for readability
This commit is contained in:
parent
1f06035bf2
commit
561ae9532a
|
@ -130,7 +130,9 @@ function getFilterQuery(filter: DittoFilter) {
|
|||
|
||||
/** Combine filter queries into a single union query. */
|
||||
function getFiltersQuery(filters: DittoFilter[]) {
|
||||
return filters.map(getFilterQuery).reduce((result, query) => result.union(query));
|
||||
return filters
|
||||
.map(getFilterQuery)
|
||||
.reduce((result, query) => result.union(query));
|
||||
}
|
||||
|
||||
/** Get events for filters from the database. */
|
||||
|
|
Loading…
Reference in New Issue