From 647e39dcdd4b8cd5997d4513bf9caa35558267ee Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 17 Nov 2023 13:38:07 +0530 Subject: [PATCH] fix: return the extracted id object(key-val) --- packages/nocodb/src/db/BaseModelSqlv2.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index 35571e1cfa..97b0de29dc 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -3032,7 +3032,7 @@ class BaseModelSqlv2 { // insert one by one as fallback to get ids for sqlite and mysql if (insertOneByOneAsFallback && (this.isSqlite || this.isMySQL)) { - // sqlite and mysql doesnt support returning, so insert one by one and return ids + // sqlite and mysql doesn't support returning, so insert one by one and return ids response = []; const aiPkCol = this.model.primaryKeys.find((pk) => pk.ai); @@ -5404,7 +5404,7 @@ export function _wherePk(primaryKeys: Column[], id: unknown | unknown[]) { } } - return id; + return where; } const ids = Array.isArray(id) ? id : (id + '').split('___');