slackapi / template-terms-of-service

Sample Slack app that uses the Events API and interactive messages to send new users a Terms of Service or welcome message
MIT License
35 stars 25 forks source link

Don't JSON.parse req.body when using bodyParser #1

Closed dinoshauer closed 6 years ago

dinoshauer commented 7 years ago

This PR fixes a few errors in regards trying to parse the body from JSON when it's already been converted by the bodyParser. Also, it'll parse the payload key in the body which is just a string.

CLAassistant commented 7 years ago

CLA assistant check
All committers have signed the CLA.