mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00: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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user