Skip to content

Commit

Permalink
fix func
Browse files Browse the repository at this point in the history
  • Loading branch information
hohieuu committed Jun 29, 2021
1 parent 44160c3 commit 6f5668d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^0.21.1",
"body-parser": "^1.19.0",
"dotenv": "^10.0.0",
"ejs": "^3.1.6",
Expand Down
2 changes: 1 addition & 1 deletion routes/webhook.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ router.post('/', (req, res) => {


// Handles messages events
function handleMessage(senderPsid, receivedMessage) {
async function handleMessage(senderPsid, receivedMessage) {
let response;
// Checks if the message contains text
if (receivedMessage.text) {
Expand Down

0 comments on commit 6f5668d

Please sign in to comment.