|
|
@ -4989,6 +4989,7 @@ class BaseModelSqlv2 { |
|
|
|
NcError.unprocessableEntity( |
|
|
|
NcError.unprocessableEntity( |
|
|
|
`Child record with id [${extractIdsString( |
|
|
|
`Child record with id [${extractIdsString( |
|
|
|
childIds, |
|
|
|
childIds, |
|
|
|
|
|
|
|
true, |
|
|
|
)}] not found`,
|
|
|
|
)}] not found`,
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -5223,6 +5224,7 @@ class BaseModelSqlv2 { |
|
|
|
NcError.unprocessableEntity( |
|
|
|
NcError.unprocessableEntity( |
|
|
|
`Child record with id [${extractIdsString( |
|
|
|
`Child record with id [${extractIdsString( |
|
|
|
childIds, |
|
|
|
childIds, |
|
|
|
|
|
|
|
true, |
|
|
|
)}] not found`,
|
|
|
|
)}] not found`,
|
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -5689,8 +5691,11 @@ export function getListArgs( |
|
|
|
return obj; |
|
|
|
return obj; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function extractIdsString(childIds: (string | number | Record<string, any>)[]) { |
|
|
|
function extractIdsString( |
|
|
|
return childIds |
|
|
|
childIds: (string | number | Record<string, any>)[], |
|
|
|
|
|
|
|
isBt = false, |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
return (isBt ? childIds.slice(0, 1) : childIds) |
|
|
|
.map((r) => (typeof r === 'object' ? JSON.stringify(r) : r)) |
|
|
|
.map((r) => (typeof r === 'object' ? JSON.stringify(r) : r)) |
|
|
|
.join(', '); |
|
|
|
.join(', '); |
|
|
|
} |
|
|
|
} |
|
|
|