mirror of https://github.com/Fabio286/antares.git
fix(SQLite): error with integer timestamp fields
This commit is contained in:
parent
a124f04661
commit
2b5e1e7b39
|
@ -672,8 +672,8 @@ export class SQLiteClient extends AntaresCore {
|
|||
|
||||
if ([...TIME, ...DATETIME].includes(parsedType)) {
|
||||
const firstNotNull = queryAllResult.find(res => res[field.name] !== null);
|
||||
if (firstNotNull && firstNotNull[field.name].includes('.'))
|
||||
length = firstNotNull[field.name].split('.').pop().length;
|
||||
if (firstNotNull && String(firstNotNull[field.name]).includes('.'))
|
||||
length = String(firstNotNull[field.name]).split('.').pop().length;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue