mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-30 04:05:40 +00:00
Fix lookup timestamps for postgre (#7940)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
7f22082cdb
commit
dad177e61d
@ -864,7 +864,12 @@ abstract class PostgresAdapterBase implements DbAdapter {
|
||||
if (key === 'data') {
|
||||
obj[p] = { ...obj[p], ...row[column] }
|
||||
} else {
|
||||
if (key === 'attachedTo' && row[column] === 'NULL') {
|
||||
if (key === 'createdOn' || key === 'modifiedOn') {
|
||||
const val = Number.parseInt(row[column])
|
||||
obj[p][key] = Number.isNaN(val) ? null : val
|
||||
} else if (key === '%hash%') {
|
||||
continue
|
||||
} else if (key === 'attachedTo' && row[column] === 'NULL') {
|
||||
continue
|
||||
} else {
|
||||
obj[p][key] = row[column] === 'NULL' ? null : row[column]
|
||||
|
Loading…
Reference in New Issue
Block a user