mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
remove ms from string date value, add mysql migration
This commit is contained in:
parent
8abeba4c0d
commit
9726d02dcd
5 changed files with 40 additions and 35 deletions
|
|
@ -38,7 +38,11 @@ async function relationalQuery(data: {
|
|||
websiteId,
|
||||
eventKey: a.key,
|
||||
stringValue:
|
||||
a.dynamicDataType === DATA_TYPE.number ? parseFloat(a.value).toFixed(4) : a.value.toString(),
|
||||
a.dynamicDataType === DATA_TYPE.number
|
||||
? parseFloat(a.value).toFixed(4)
|
||||
: a.dynamicDataType === DATA_TYPE.date
|
||||
? a.value.split('.')[0] + 'Z'
|
||||
: a.value.toString(),
|
||||
numberValue: a.dynamicDataType === DATA_TYPE.number ? a.value : null,
|
||||
dateValue: a.dynamicDataType === DATA_TYPE.date ? new Date(a.value) : null,
|
||||
dataType: a.dynamicDataType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue