Skip to content

Commit 9c95ec1

Browse files
authored
Merge pull request #3 from nexmo-community/adds_variables
Adds variables
2 parents ed1e754 + 261488f commit 9c95ec1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ const vonage = new Vonage({
1515
})
1616

1717
app.post('/inbound', (req, res) => {
18-
18+
const { from, text } = req.body;
1919
console.log(JSON.stringify(req.body));
2020

2121
base('Messages').select({
22-
filterByFormula: `Number=${req.body.from}`
22+
filterByFormula: `Number=${from}`
2323
}).eachPage(records => {
2424
if (records.length == 0) {
2525
createUser(text, req.body.from)

0 commit comments

Comments
 (0)