Removed custom date format. Use ISO string everywhere.
This commit is contained in:
@@ -81,8 +81,8 @@ async function clickhouseQuery(data: {
|
||||
const { websiteId, sessionId, sessionData } = data;
|
||||
|
||||
const { insert } = clickhouse;
|
||||
const { getDateFormat, sendMessages } = kafka;
|
||||
const createdAt = getDateFormat(new Date());
|
||||
const { sendMessages } = kafka;
|
||||
const createdAt = new Date().toISOString();
|
||||
|
||||
const jsonKeys = flattenJSON(sessionData);
|
||||
|
||||
@@ -94,7 +94,7 @@ async function clickhouseQuery(data: {
|
||||
data_type: dataType,
|
||||
string_value: getStringValue(value, dataType),
|
||||
number_value: dataType === DATA_TYPE.number ? value : null,
|
||||
date_value: dataType === DATA_TYPE.date ? getDateFormat(value) : null,
|
||||
date_value: dataType === DATA_TYPE.date ? value?.toISOString() : null,
|
||||
created_at: createdAt,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user