Fix github pg (#7135)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-11-08 15:55:47 +05:00 committed by GitHub
parent 04c8c2ffa0
commit db6c247799
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -302,8 +302,13 @@ export function inferType (val: any): string {
} }
if (Array.isArray(val)) { if (Array.isArray(val)) {
const type = inferType(val[0]) const type = inferType(val[0])
if (type !== '') {
return type + '[]' return type + '[]'
} }
}
if (typeof val === 'object') {
return '::jsonb'
}
return '' return ''
} }