🐛 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 2021-10-13 19:36:33 -04:00 committed by GitHub
parent 71d7ed1164
commit e296b02185
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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 // Prevent json parsing
axiosConfig.transformResponse = (res) => res; axiosConfig.transformResponse = (res) => res;
} }

View file

@ -312,7 +312,7 @@ export class AwsDynamoDB implements INodeType {
if (scan === true) { if (scan === true) {
body['FilterExpression'] = this.getNodeParameter('filterExpression', i) as string; body['FilterExpression'] = this.getNodeParameter('filterExpression', i) as string;
} else { } else {
body['KeyConditionExpression'] = this.getNodeParameter('KeyConditionExpression', i) as string; body['KeyConditionExpression'] = this.getNodeParameter('keyConditionExpression', i) as string;
} }
const { const {