mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
fix(AWS DynamoDB Node): Fix expression attribute names (#3763)
* Fix expression attribute names in getAll * fix: EAN value should be a string, not object
This commit is contained in:
parent
fe58769b48
commit
88cb26556c
|
@ -303,7 +303,7 @@ export class AwsDynamoDB implements INodeType {
|
|||
const select = this.getNodeParameter('select', 0) as string;
|
||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||
const scan = this.getNodeParameter('scan', 0) as boolean;
|
||||
const eanUi = this.getNodeParameter('additionalFields.eanUi.eanValues', i, []) as IAttributeNameUi[];
|
||||
const eanUi = this.getNodeParameter('options.eanUi.eanValues', i, []) as IAttributeNameUi[];
|
||||
|
||||
const body: IRequestBody = {
|
||||
TableName: this.getNodeParameter('tableName', i) as string,
|
||||
|
|
|
@ -29,12 +29,10 @@ export function adjustExpressionAttributeValues(eavUi: IAttributeValueUi[]) {
|
|||
}
|
||||
|
||||
export function adjustExpressionAttributeName(eanUi: IAttributeNameUi[]) {
|
||||
|
||||
// tslint:disable-next-line: no-any
|
||||
const ean: { [key: string]: any } = {};
|
||||
const ean: { [key: string]: string } = {};
|
||||
|
||||
eanUi.forEach(({ key, value }) => {
|
||||
ean[addPound(key)] = { value } as IAttributeValueValue;
|
||||
ean[addPound(key)] = value;
|
||||
});
|
||||
|
||||
return ean;
|
||||
|
|
Loading…
Reference in a new issue