Skip to content

Commit 80d4c10

Browse files
committed
fix: remove bad condition
1 parent 8f1db57 commit 80d4c10

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/handlers/save-data/app.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ const tableName = process.env.DATA_TABLE;
55
const crypto = require("crypto");
66

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

1310
const body = JSON.parse(event.body)

0 commit comments

Comments
 (0)