@tiledesk/tiledesk-whatsapp-connector 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -395,7 +395,7 @@ router.post("/webhook/:project_id", async (req, res) => {
|
|
|
395
395
|
|
|
396
396
|
if (req.body.entry[0].changes[0].value.messages[0].type == "system") {
|
|
397
397
|
console.log("Skip system message")
|
|
398
|
-
res.sendStatus(200);
|
|
398
|
+
return res.sendStatus(200);
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
//let originalWhatsappMessage = req.body;
|
|
@@ -499,7 +499,7 @@ router.post("/webhook/:project_id", async (req, res) => {
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
}
|
|
502
|
-
res.sendStatus(200);
|
|
502
|
+
res.sendStatus(200);
|
|
503
503
|
} else {
|
|
504
504
|
// Return a '404 Not Found' if event is not from a WhatsApp API
|
|
505
505
|
res.sendStatus(404);
|