Skip to content

Commit

Permalink
Merge pull request #25 from fabidick22/add-dynamodb-simple-table
Browse files Browse the repository at this point in the history
fix: remove bad condition
  • Loading branch information
fabidick22 authored Oct 14, 2020
2 parents d1bb0c0 + 80d4c10 commit f5ea019
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/handlers/save-data/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ const tableName = process.env.DATA_TABLE;
const crypto = require("crypto");

exports.lambdaHandler = async (event, context) => {
if (event.httpMethod !== 'POST') {
throw new Error(`postMethod only accepts POST method, you tried: ${event.httpMethod} method.`);
}
console.info('table name:', tableName);

const body = JSON.parse(event.body)
Expand Down

0 comments on commit f5ea019

Please sign in to comment.