Browse Source

fix: sqlite bulk insert

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5901/head
Pranav C 2 years ago
parent
commit
50a318a243
  1. 2
      packages/nocodb/src/db/BaseModelSqlv2.ts

2
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -2142,7 +2142,7 @@ class BaseModelSqlv2 {
for (const insertData of insertDatas) { for (const insertData of insertDatas) {
const query = trx(this.tnPath).insert(insertData); const query = trx(this.tnPath).insert(insertData);
const id = (await query)[0]; const id = (await query)[0];
response.push(await this.readByPk(id)); response.push(id);
} }
} else { } else {
response = response =

Loading…
Cancel
Save