Skip to content

Commit ed84ccf

Browse files
authored
Merge pull request #914 from rocket-admin/backend_master_encryption_rework
update attribute type detection in DynamoDB data access object
2 parents 3db242f + 1271836 commit ed84ccf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shared-code/src/data-access-layer/data-access-objects/data-access-object-dynamodb.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,9 @@ export class DataAccessObjectDynamoDB extends BasicDataAccessObject implements I
609609
items.forEach((item) => {
610610
Object.keys(item).forEach((key) => {
611611
if (!attributeTypes[key]) {
612-
attributeTypes[key] = typeof item[key];
612+
const attributeValue = item[key];
613+
const attributeType = Object.keys(attributeValue)[0];
614+
attributeTypes[key] = attributeType;
613615
}
614616
});
615617
});

0 commit comments

Comments
 (0)