From ff272440bdc2a7fe699e04f8809bd5af8f9529c0 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Tue, 10 May 2022 15:14:34 +0200 Subject: [PATCH] fix: unable to insert auto-generated datetime fields --- src/main/ipc-handlers/tables.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ipc-handlers/tables.ts b/src/main/ipc-handlers/tables.ts index 466fc10d..c32d3151 100644 --- a/src/main/ipc-handlers/tables.ts +++ b/src/main/ipc-handlers/tables.ts @@ -2,7 +2,7 @@ import * as antares from 'common/interfaces/antares'; import { InsertRowsParams } from 'common/interfaces/tableApis'; import { ipcMain } from 'electron'; import { faker } from '@faker-js/faker'; -import moment from 'moment'; +import * as moment from 'moment'; import { sqlEscaper } from 'common/libs/sqlEscaper'; import { TEXT, LONG_TEXT, ARRAY, TEXT_SEARCH, NUMBER, FLOAT, BLOB, BIT, DATE, DATETIME } from 'common/fieldTypes'; import * as customizations from 'common/customizations';