add limit 50 to event chart, metrics table, and UTM report
This commit is contained in:
1 parent
09bc2ee5c8
commit
530c21dac0
6 files changed
+69
-9
No files matched your search
@@ -14,6 +14,7 @@ export async function GET(
|
||||
endAt: z.coerce.number().int(),
|
||||
unit: unitParam.optional(),
|
||||
timezone: timezoneParam,
|
||||
limit: z.coerce.number().optional(),
|
||||
...filterParams,
|
||||
});
|
||||
|
||||
@@ -29,9 +30,10 @@ export async function GET(
|
||||
return unauthorized();
|
||||
}
|
||||
|
||||
const { limit } = query;
|
||||
const filters = await getQueryFilters(query, websiteId);
|
||||
|
||||
const data = await getEventStats(websiteId, filters);
|
||||
const data = await getEventStats(websiteId, { limit }, filters);
|
||||
|
||||
return json(data);
|
||||
}
|
||||
Reference in new issue
Block a user