Skip to content

Commit eda1ef6

Browse files
committed
Changed request type to json.
1 parent 84c8556 commit eda1ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/routes/bot.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ router.post('/slack', (req, res) => {
5757
request({
5858
uri: responseUrl,
5959
method: 'POST',
60-
form: result
60+
json: result
6161
}, (err, response, body) => {
62-
console.log('Request sent. ', response);
62+
console.log('Request sent. ', body);
6363
if(err){
6464
console.log('Oops. Error: ', err.message);
6565
}

0 commit comments

Comments
 (0)