db/events: getFiltersQuery, improve variable names
This commit is contained in:
parent
e377d7b3ce
commit
1f06035bf2
|
@ -130,7 +130,7 @@ 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((acc, curr) => acc.union(curr));
|
return filters.map(getFilterQuery).reduce((result, query) => result.union(query));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get events for filters from the database. */
|
/** Get events for filters from the database. */
|
||||||
|
|
Loading…
Reference in New Issue