mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Breakdown feature for insights report.
This commit is contained in:
parent
5e1111db5d
commit
f48720c915
6 changed files with 51 additions and 46 deletions
|
|
@ -5,7 +5,7 @@ import { EVENT_TYPE } from 'lib/constants';
|
|||
import { QueryFilters } from 'lib/types';
|
||||
|
||||
export async function getInsights(
|
||||
...args: [websiteId: string, filters: QueryFilters, groups: { name: string; type: string }[]]
|
||||
...args: [websiteId: string, groups: { name: string; type: string }[], filters: QueryFilters]
|
||||
) {
|
||||
return runQuery({
|
||||
[PRISMA]: () => relationalQuery(...args),
|
||||
|
|
@ -15,8 +15,8 @@ export async function getInsights(
|
|||
|
||||
async function relationalQuery(
|
||||
websiteId: string,
|
||||
filters: QueryFilters,
|
||||
groups: { name: string; type: string }[],
|
||||
filters: QueryFilters,
|
||||
): Promise<
|
||||
{
|
||||
x: string;
|
||||
|
|
@ -48,8 +48,8 @@ async function relationalQuery(
|
|||
|
||||
async function clickhouseQuery(
|
||||
websiteId: string,
|
||||
filters: QueryFilters,
|
||||
groups: { name: string; type: string }[],
|
||||
filters: QueryFilters,
|
||||
): Promise<
|
||||
{
|
||||
x: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue