diff --git a/aws-node-typescript-rest-api-with-dynamodb/todos/create.ts b/aws-node-typescript-rest-api-with-dynamodb/todos/create.ts index c10b8e3f1..f86d01cfc 100644 --- a/aws-node-typescript-rest-api-with-dynamodb/todos/create.ts +++ b/aws-node-typescript-rest-api-with-dynamodb/todos/create.ts @@ -38,7 +38,7 @@ module.exports.create = (event, context, callback) => { // create a response const response = { statusCode: 200, - body: JSON.stringify(result.Item) + body: JSON.stringify(params.Item) } callback(null, response) })