mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Updated Clickhouse number handling. Removed number formatting.
This commit is contained in:
parent
caa9da9166
commit
04e0b33622
15 changed files with 23 additions and 145 deletions
|
|
@ -61,12 +61,5 @@ async function clickhouseQuery(
|
|||
limit 500
|
||||
`,
|
||||
params,
|
||||
).then(result => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return {
|
||||
propertyName: a.propertyName,
|
||||
total: Number(a.total),
|
||||
};
|
||||
});
|
||||
});
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,12 +61,5 @@ async function clickhouseQuery(
|
|||
limit 100
|
||||
`,
|
||||
params,
|
||||
).then(result => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return {
|
||||
...a,
|
||||
total: Number(a.total),
|
||||
};
|
||||
});
|
||||
});
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,9 +87,5 @@ async function clickhouseQuery(
|
|||
`;
|
||||
}
|
||||
|
||||
return rawQuery(sql, params).then(result => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return { x: a.x, y: Number(a.y) };
|
||||
});
|
||||
});
|
||||
return rawQuery(sql, params);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,15 +68,5 @@ async function clickhouseQuery(
|
|||
${filterQuery}
|
||||
`,
|
||||
params,
|
||||
).then(result => {
|
||||
return Object.values(result).map((a: any) => {
|
||||
return {
|
||||
pageviews: Number(a.pageviews),
|
||||
visitors: Number(a.visitors),
|
||||
visits: Number(a.visits),
|
||||
countries: Number(a.countries),
|
||||
events: Number(a.events),
|
||||
};
|
||||
});
|
||||
});
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue