add profileId to event-list (fix #24)
This commit is contained in:
@@ -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,
|
||||||
}),
|
}),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user