Added limit to metrics queries.

This commit is contained in:
Mike Cao committed 2023-12-12 19:00:44 -08:00
1 parent a851ebf124
commit 907685b96e
7 files changed
+32 -12

No files matched your search

+5 -1
View File
@@ -135,7 +135,11 @@ function normalizeFilters(filters = {}) {
}, {});
}
async function parseFilters(websiteId, filters: QueryFilters = {}, options: QueryOptions = {}) {
async function parseFilters(
websiteId: string,
filters: QueryFilters = {},
options: QueryOptions = {},
) {
const website = await loadWebsite(websiteId);
return {
+1
View File
@@ -206,6 +206,7 @@ export interface QueryFilters {
export interface QueryOptions {
joinSession?: boolean;
columns?: { [key: string]: string };
limit?: number;
}
export interface RealtimeData {