mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix: DynamoDB node type issues (#5002)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user