From aaf9886c044de11b36ab167dfef5708a58b28daf Mon Sep 17 00:00:00 2001 From: mertmit Date: Mon, 22 Apr 2024 07:16:41 +0000 Subject: [PATCH] fix: add limitOverride for post update list --- packages/nocodb/src/db/BaseModelSqlv2.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index 612e7b246d..8422ebe0aa 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -3772,9 +3772,14 @@ class BaseModelSqlv2 { if (!raw) { while (updatePkValues.length) { - const updatedRecords = await this.list({ - pks: updatePkValues.splice(0, readChunkSize).join(','), - }); + const updatedRecords = await this.list( + { + pks: updatePkValues.splice(0, readChunkSize).join(','), + }, + { + limitOverride: readChunkSize, + }, + ); newData.push(...updatedRecords); }