db/events: getFiltersQuery, break to multiple lines for readability

This commit is contained in:
Alex Gleason 2023-09-04 13:04:20 -05:00
parent 1f06035bf2
commit 561ae9532a
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ function getFilterQuery(filter: DittoFilter) {
/** 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.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. */ /** Get events for filters from the database. */