add profileId to event-list (fix #24)

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-05-30 21:56:35 +02:00
parent 91b492d4e9
commit 51bb0c969d

View File

@@ -10,6 +10,7 @@ type Props = {
projectId: string; projectId: string;
filters?: IChartEventFilter[]; filters?: IChartEventFilter[];
eventNames?: string[]; eventNames?: string[];
profileId?: string;
}; };
const EventListServer = async ({ const EventListServer = async ({
@@ -17,6 +18,7 @@ const EventListServer = async ({
projectId, projectId,
eventNames, eventNames,
filters, filters,
profileId,
}: Props) => { }: Props) => {
const [events, count] = await Promise.all([ const [events, count] = await Promise.all([
getEventList({ getEventList({
@@ -25,11 +27,13 @@ const EventListServer = async ({
take: 50, take: 50,
events: eventNames, events: eventNames,
filters, filters,
profileId,
}), }),
getEventsCount({ getEventsCount({
projectId, projectId,
events: eventNames, events: eventNames,
filters, filters,
profileId,
}), }),
]); ]);