Bugfixes in nodejs environment server and examples

This commit is contained in:
Soam Vasani
2017-03-19 19:36:00 -07:00
parent b5b10a4a27
commit a390c1baa8
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -4,7 +4,8 @@ const rp = require('request-promise-native');
module.exports = async function (context) {
const body = context.request.body;
const symbol = body.symbol
console.log(`body = ${body}`);
const symbol = body['text'].split(' ')[1];
console.log(`Got symbol: ${symbol}`);