🐛 Fixes issue handling response when json property is not set (#2318)

Also fixes an small bug reading the keyCondtionExpression parameter
This commit is contained in:
Ricardo Espinoza authored and GitHub committed 2021-10-13 16:36:33 -07:00
1 parent 71d7ed1164
commit e296b02185
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -301,7 +301,7 @@ async function parseRequestObject(requestObject: IDataObject) {
});
}
}
if (requestObject.json === false) {
if (requestObject.json === false || requestObject.json === undefined) {
// Prevent json parsing
axiosConfig.transformResponse = (res) => res;
}
@@ -312,7 +312,7 @@ export class AwsDynamoDB implements INodeType {
if (scan === true) {
body['FilterExpression'] = this.getNodeParameter('filterExpression', i) as string;
} else {
body['KeyConditionExpression'] = this.getNodeParameter('KeyConditionExpression', i) as string;
body['KeyConditionExpression'] = this.getNodeParameter('keyConditionExpression', i) as string;
}
const {