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:
Nicholas Penree
2022-07-24 12:13:11 -04:00
committed by GitHub
parent fe58769b48
commit 88cb26556c
2 changed files with 3 additions and 5 deletions

View File

@@ -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;