mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Added limit to metrics queries.
This commit is contained in:
parent
a851ebf124
commit
907685b96e
7 changed files with 32 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -206,6 +206,7 @@ export interface QueryFilters {
|
|||
export interface QueryOptions {
|
||||
joinSession?: boolean;
|
||||
columns?: { [key: string]: string };
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
export interface RealtimeData {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue