fixed postgres-client
This commit is contained in:
parent
42bc2966df
commit
4aa8b7a42d
4 changed files with 3 additions and 6 deletions
|
|
@ -224,7 +224,7 @@ export class PostgreSQLClient {
|
|||
}
|
||||
|
||||
const { chunkSize = 1000, excludeColumns = [] } = options;
|
||||
const columns = Object.keys(data[0]).filter(col => !excludeColumns.includes(col));
|
||||
const columns = Object.keys(data[0] ?? {}).filter(col => !excludeColumns.includes(col));
|
||||
const updateColumns = columns.filter(col => col !== conflictColumn);
|
||||
|
||||
let totalInserted = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue