mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 00:27:11 +01:00
Upgrade prisma. Lint fixes.
This commit is contained in:
parent
a3b5f05a32
commit
a224a3caf3
11 changed files with 56 additions and 51 deletions
|
|
@ -83,10 +83,17 @@ async function clickhouseQuery(
|
|||
limit 500
|
||||
`,
|
||||
params,
|
||||
);
|
||||
).then(a => {
|
||||
return Object.values(a).map(a => {
|
||||
return {
|
||||
x: a.x,
|
||||
y: Number(a.y),
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function parseFields(fields) {
|
||||
function parseFields(fields: any[]) {
|
||||
const query = fields.reduce(
|
||||
(arr, field) => {
|
||||
const { name } = field;
|
||||
|
|
@ -99,7 +106,7 @@ function parseFields(fields) {
|
|||
return query.join(',\n');
|
||||
}
|
||||
|
||||
function parseGroupBy(fields) {
|
||||
function parseGroupBy(fields: { name: any }[]) {
|
||||
if (!fields.length) {
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue