mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Updated pixel/link endpoints. Added name to rawQuery.
This commit is contained in:
parent
b9fbbc6453
commit
8a977b0164
18 changed files with 913 additions and 810 deletions
|
|
@ -3,6 +3,8 @@ import clickhouse from '@/lib/clickhouse';
|
|||
import { runQuery, CLICKHOUSE, PRISMA } from '@/lib/db';
|
||||
import { QueryFilters } from '@/lib/types';
|
||||
|
||||
const FUNCTION_NAME = 'getValues';
|
||||
|
||||
export async function getValues(
|
||||
...args: [websiteId: string, column: string, filters: QueryFilters]
|
||||
) {
|
||||
|
|
@ -64,6 +66,7 @@ async function relationalQuery(websiteId: string, column: string, filters: Query
|
|||
search: `%${search}%`,
|
||||
...params,
|
||||
},
|
||||
FUNCTION_NAME,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -120,5 +123,6 @@ async function clickhouseQuery(websiteId: string, column: string, filters: Query
|
|||
search,
|
||||
...params,
|
||||
},
|
||||
FUNCTION_NAME,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue