mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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 select = this.getNodeParameter('select', 0) as string;
|
||||||
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;
|
||||||
const scan = this.getNodeParameter('scan', 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 = {
|
const body: IRequestBody = {
|
||||||
TableName: this.getNodeParameter('tableName', i) as string,
|
TableName: this.getNodeParameter('tableName', i) as string,
|
||||||
|
|
|
@ -29,12 +29,10 @@ export function adjustExpressionAttributeValues(eavUi: IAttributeValueUi[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function adjustExpressionAttributeName(eanUi: IAttributeNameUi[]) {
|
export function adjustExpressionAttributeName(eanUi: IAttributeNameUi[]) {
|
||||||
|
const ean: { [key: string]: string } = {};
|
||||||
// tslint:disable-next-line: no-any
|
|
||||||
const ean: { [key: string]: any } = {};
|
|
||||||
|
|
||||||
eanUi.forEach(({ key, value }) => {
|
eanUi.forEach(({ key, value }) => {
|
||||||
ean[addPound(key)] = { value } as IAttributeValueValue;
|
ean[addPound(key)] = value;
|
||||||
});
|
});
|
||||||
|
|
||||||
return ean;
|
return ean;
|
||||||
|
|
Loading…
Reference in a new issue