mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
* Added 'M' type to decode attribute for dynamodb * Fixed bug with return all. Headers from the previous iteration were being passed causing an invalid signature error
This commit is contained in:
parent
4da9c3918d
commit
a43ea177eb
|
@ -66,7 +66,8 @@ export async function awsApiRequestAllItems(
|
||||||
let responseData;
|
let responseData;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
responseData = await awsApiRequest.call(this, service, method, path, body, headers);
|
const originalHeaders = Object.assign({}, headers); //The awsapirequest function adds the hmac signature to the headers, if we pass the modified headers back in on the next call it will fail with invalid signature
|
||||||
|
responseData = await awsApiRequest.call(this, service, method, path, body, originalHeaders);
|
||||||
if (responseData.LastEvaluatedKey) {
|
if (responseData.LastEvaluatedKey) {
|
||||||
body!.ExclusiveStartKey = responseData.LastEvaluatedKey;
|
body!.ExclusiveStartKey = responseData.LastEvaluatedKey;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,8 @@ function decodeAttribute(type: AttributeValueType, attribute: string) {
|
||||||
case 'SS':
|
case 'SS':
|
||||||
case 'NS':
|
case 'NS':
|
||||||
return attribute;
|
return attribute;
|
||||||
|
case 'M':
|
||||||
|
return simplify(attribute);
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue