|
|
@ -5194,9 +5194,7 @@ export function extractSortsObject( |
|
|
|
else sort.fk_column_id = aliasColObjMap[s.replace(/^\+/, '')]?.id; |
|
|
|
else sort.fk_column_id = aliasColObjMap[s.replace(/^\+/, '')]?.id; |
|
|
|
|
|
|
|
|
|
|
|
if (throwErrorIfInvalid && !sort.fk_column_id) |
|
|
|
if (throwErrorIfInvalid && !sort.fk_column_id) |
|
|
|
NcError.unprocessableEntity( |
|
|
|
NcError.unprocessableEntity(`Invalid field: ${s.replace(/^[+-]/, '')}`); |
|
|
|
`Invalid field '${s.replace(/^[+-]/, '')}' in sort`, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new Sort(sort); |
|
|
|
return new Sort(sort); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -5360,7 +5358,7 @@ export function extractCondition( |
|
|
|
|
|
|
|
|
|
|
|
validateFilterComparison(aliasColObjMap[alias].uidt, op, sub_op); |
|
|
|
validateFilterComparison(aliasColObjMap[alias].uidt, op, sub_op); |
|
|
|
} else if (throwErrorIfInvalid) { |
|
|
|
} else if (throwErrorIfInvalid) { |
|
|
|
NcError.unprocessableEntity(`Invalid field '${alias}' in Query`); |
|
|
|
NcError.unprocessableEntity(`Invalid field: ${alias}`); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return new Filter({ |
|
|
|
return new Filter({ |
|
|
|