add event type filter button and implementation to journeys Close #2803
This commit is contained in:
1 parent
355fa1e9a9
commit
128217c0f4
5 files changed
+39
-4
No files matched your search
@@ -12,11 +12,16 @@ export async function POST(request: Request) {
|
||||
}
|
||||
|
||||
const { websiteId, parameters, filters } = body;
|
||||
const { eventType } = parameters;
|
||||
|
||||
if (!(await canViewWebsite(auth, websiteId))) {
|
||||
return unauthorized();
|
||||
}
|
||||
|
||||
if (eventType) {
|
||||
filters.eventType = eventType;
|
||||
}
|
||||
|
||||
const queryFilters = await getQueryFilters(filters, websiteId);
|
||||
|
||||
const data = await getJourney(websiteId, parameters, queryFilters);
|
||||
|
||||
Reference in new issue
Block a user