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,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 ''
}