Skip to content

Commit e688bb1

Browse files
authored
Merge pull request dynamodb-toolbox#124 from kcwinner/fix/120_transact_get_undefined
fix: Fixes the undefined error when running Table.transactGet
2 parents 86e1127 + a4aae22 commit e688bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/Table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ class Table {
12561256
result,
12571257
result.Responses ? {
12581258
Responses: result.Responses!.map((res,i) => {
1259-
return { Item: Entities[i].parse ? Entities[i].parse(res.Item) : res.Item }
1259+
return { Item: Entities[i].parse ? Entities[i].parse(res) : res.Item }
12601260
})
12611261
} : null
12621262
) as DocumentClient.TransactGetItemsOutput

0 commit comments

Comments
 (0)