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