mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 01:26:01 +00:00
fix: remove duplicated typecheck
This commit is contained in:
@@ -43,11 +43,6 @@ function _normalizeValue(value) {
|
|||||||
return value.toDouble();
|
return value.toDouble();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value instanceof DuckDBTimestampValue) {
|
|
||||||
const date = new Date(Number(value.micros / 1000n));
|
|
||||||
return date.toISOString();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (value instanceof DuckDBDateValue) {
|
if (value instanceof DuckDBDateValue) {
|
||||||
const year = value.year;
|
const year = value.year;
|
||||||
const month = String(value.month).padStart(2, '0');
|
const month = String(value.month).padStart(2, '0');
|
||||||
|
|||||||
Reference in New Issue
Block a user