Add Property filters for booleans, dates, arrays

This commit is contained in:
Francis Cao committed 2026-04-27 13:31:47 -07:00
1 parent 877945e721
commit 9da332c489
21 files changed
+499 -163

No files matched your search

@@ -14,6 +14,7 @@ export async function GET(
endAt: z.coerce.number().int(),
event: z.string(),
propertyName: z.string(),
dataType: z.coerce.number().int().optional(),
...filterParams,
});
@@ -29,12 +30,13 @@ export async function GET(
return unauthorized();
}
const { propertyName } = query;
const { propertyName, dataType } = query;
const filters = await getQueryFilters(query, websiteId);
const data = await getEventDataValues(websiteId, {
...filters,
propertyName,
dataType,
});
return json(data);