support event filters for funnels

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-09 08:10:45 +01:00
parent 22a37b698d
commit 79d2368cfc
4 changed files with 51 additions and 39 deletions

View File

@@ -275,7 +275,10 @@ export async function getEventList({
}
if (filters) {
getEventFiltersWhereClause(sb, filters);
sb.where = {
...sb.where,
...getEventFiltersWhereClause(filters),
};
}
// if (cursor) {
@@ -307,7 +310,10 @@ export async function getEventsCount({
}
if (filters) {
getEventFiltersWhereClause(sb, filters);
sb.where = {
...sb.where,
...getEventFiltersWhereClause(filters),
};
}
const res = await chQuery<{ count: number }>(