fix cohort queries with new multiselect

This commit is contained in:
Francis Cao committed 2026-02-20 15:03:24 -08:00
1 parent f2cf071523
commit bbf569e8bc
3 files changed
+10 -4

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
import { startOfMonth, subMonths } from 'date-fns';
import { z } from 'zod';
import { checkAuth } from '@/lib/auth';
import { DEFAULT_PAGE_SIZE, FILTER_COLUMNS } from '@/lib/constants';
import { DEFAULT_PAGE_SIZE, FILTER_COLUMNS, OPERATORS } from '@/lib/constants';
import { getAllowedUnits, getMinimumUnit, maxDate, parseDateRange } from '@/lib/date';
import { fetchAccount, fetchWebsite } from '@/lib/load';
import { filtersArrayToObject } from '@/lib/params';
@@ -130,7 +130,7 @@ export async function getQueryFilters(
cohortFilters.push({
name: `cohort_${cohortParams.action.type}`,
operator: 'eq',
operator: OPERATORS.equals,
value: cohortParams.action.value,
});