|
|
@ -69,7 +69,9 @@ const getAst = async ({ |
|
|
|
if (throwErrorIfInvalidParams) { |
|
|
|
if (throwErrorIfInvalidParams) { |
|
|
|
const colAliasMap = await model.getColAliasMapping(); |
|
|
|
const colAliasMap = await model.getColAliasMapping(); |
|
|
|
const aliasColMap = await model.getAliasColMapping(); |
|
|
|
const aliasColMap = await model.getAliasColMapping(); |
|
|
|
const invalidFields = fields.filter((f) => !colAliasMap[f] && !aliasColMap[f]); |
|
|
|
const invalidFields = fields.filter( |
|
|
|
|
|
|
|
(f) => !colAliasMap[f] && !aliasColMap[f], |
|
|
|
|
|
|
|
); |
|
|
|
if (invalidFields.length) { |
|
|
|
if (invalidFields.length) { |
|
|
|
NcError.unprocessableEntity( |
|
|
|
NcError.unprocessableEntity( |
|
|
|
`Following fields are invalid: ${invalidFields.join(', ')}`, |
|
|
|
`Following fields are invalid: ${invalidFields.join(', ')}`, |
|
|
|