db/events: getFiltersQuery, improve variable names

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

View File

@ -130,7 +130,7 @@ function getFilterQuery(filter: DittoFilter) {
/** Combine filter queries into a single union query. */
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. */