Skip to content

Commit

Permalink
parsing body json
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdevwords authored and chrisdevwords committed Mar 11, 2017
1 parent 58e35f8 commit 2c71067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function slackResp(text, code = 200, type = TYPE_PUBLIC) {
function handler(event, context, callback) {

const { body } = event;
const { command, text, token } = body || {};
const { command, text, token } = JSON.parse(body);
// eslint-disable-next-line camelcaseå
const user = body.user_name;

Expand Down

0 comments on commit 2c71067

Please sign in to comment.