update data format

This commit is contained in:
Viet-Tien Ngoc 2024-06-25 14:41:31 +07:00
parent d2658458aa
commit 3076729d7a
5 changed files with 6 additions and 5 deletions

View file

@ -75,7 +75,7 @@ async function clickhouseQuery(data: {
string_value: getStringValue(value, dataType),
number_value: dataType === DATA_TYPE.number ? value : null,
date_value: dataType === DATA_TYPE.date ? getDateFormat(value) : null,
created_at: createdAt,
created_at: createdAt ?? getDateFormat(new Date()),
};
});