mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix: DynamoDB node type issues (#5002)
This commit is contained in:
parent
a43ea177eb
commit
9568b747c7
|
@ -70,7 +70,7 @@ export function simplify(item: IAttributeValue): IDataObject {
|
|||
return output;
|
||||
}
|
||||
|
||||
function decodeAttribute(type: AttributeValueType, attribute: string) {
|
||||
function decodeAttribute(type: AttributeValueType, attribute: string | IAttributeValue) {
|
||||
switch (type) {
|
||||
case 'BOOL':
|
||||
return Boolean(attribute);
|
||||
|
@ -82,7 +82,7 @@ function decodeAttribute(type: AttributeValueType, attribute: string) {
|
|||
case 'NS':
|
||||
return attribute;
|
||||
case 'M':
|
||||
return simplify(attribute);
|
||||
return simplify(attribute as IAttributeValue);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue