Updated Clickhouse number handling. Removed number formatting.

This commit is contained in:
Mike Cao 2024-08-20 14:53:53 -07:00
parent caa9da9166
commit 04e0b33622
15 changed files with 23 additions and 145 deletions

View file

@ -85,17 +85,7 @@ async function clickhouseQuery(
limit 500
`,
params,
).then(result => {
return Object.values(result).map((a: any) => {
return {
eventName: a.eventName,
propertyName: a.propertyName,
dataType: Number(a.dataType),
propertyValue: a.propertyValue,
total: Number(a.total),
};
});
});
);
}
return rawQuery(
@ -113,14 +103,5 @@ async function clickhouseQuery(
limit 500
`,
params,
).then(result => {
return Object.values(result).map((a: any) => {
return {
eventName: a.eventName,
propertyName: a.propertyName,
dataType: Number(a.dataType),
total: Number(a.total),
};
});
});
);
}