mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-21 16:09:12 +03:00
Fix github pg (#7135)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
04c8c2ffa0
commit
db6c247799
@ -302,7 +302,12 @@ export function inferType (val: any): string {
|
||||
}
|
||||
if (Array.isArray(val)) {
|
||||
const type = inferType(val[0])
|
||||
return type + '[]'
|
||||
if (type !== '') {
|
||||
return type + '[]'
|
||||
}
|
||||
}
|
||||
if (typeof val === 'object') {
|
||||
return '::jsonb'
|
||||
}
|
||||
return ''
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user