diff --git a/package.json b/package.json index 2475859..7635a92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moicky/dynamodb", - "version": "2.4.3", + "version": "2.4.4", "main": "dist/index.js", "types": "dist/index.d.ts", "description": "Contains a collection of convenience functions for working with AWS DynamoDB", diff --git a/src/operations/get.ts b/src/operations/get.ts index 95fee3c..c078ca4 100644 --- a/src/operations/get.ts +++ b/src/operations/get.ts @@ -58,7 +58,9 @@ export async function getItem( TableName: args?.TableName || getDefaultTable(), }) ) - .then((res) => res?.Item && unmarshallWithOptions(res.Item)); + .then((res) => + res?.Item ? unmarshallWithOptions(res.Item) : undefined + ); } type GetItemsArgs = Partial<