Skip to content

Commit

Permalink
fix a tricky bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr committed Aug 16, 2023
1 parent 7680296 commit 095f8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamo.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function _getItem(tableName, key) {

const response = await client.send(command);
console.log(response);
if (!data.Item) {
if (!response.Item) {
return undefined;
}
return response;
Expand Down

0 comments on commit 095f8bc

Please sign in to comment.