diff --git a/packages/nocodb/src/db/BaseModelSqlv2.ts b/packages/nocodb/src/db/BaseModelSqlv2.ts index 3039d05e2d..8dfc514470 100644 --- a/packages/nocodb/src/db/BaseModelSqlv2.ts +++ b/packages/nocodb/src/db/BaseModelSqlv2.ts @@ -4989,6 +4989,7 @@ class BaseModelSqlv2 { NcError.unprocessableEntity( `Child record with id [${extractIdsString( childIds, + true, )}] not found`, ); } @@ -5223,6 +5224,7 @@ class BaseModelSqlv2 { NcError.unprocessableEntity( `Child record with id [${extractIdsString( childIds, + true, )}] not found`, ); } @@ -5689,8 +5691,11 @@ export function getListArgs( return obj; } -function extractIdsString(childIds: (string | number | Record)[]) { - return childIds +function extractIdsString( + childIds: (string | number | Record)[], + isBt = false, +) { + return (isBt ? childIds.slice(0, 1) : childIds) .map((r) => (typeof r === 'object' ? JSON.stringify(r) : r)) .join(', '); }