From 80d4c101dcb7f9f010b7498976748432e904ba09 Mon Sep 17 00:00:00 2001 From: Dickson Armijos Date: Tue, 13 Oct 2020 22:35:50 -0500 Subject: [PATCH] fix: remove bad condition --- src/handlers/save-data/app.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/handlers/save-data/app.js b/src/handlers/save-data/app.js index 108a1f2..edb0448 100644 --- a/src/handlers/save-data/app.js +++ b/src/handlers/save-data/app.js @@ -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)