@tiledesk/tiledesk-whatsapp-connector 0.1.72 → 0.1.73
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 +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -944,6 +944,12 @@ router.post("/webhook/:project_id", async (req, res) => {
|
|
|
944
944
|
let settings = await db.get(CONTENT_KEY);
|
|
945
945
|
winston.debug("(wab) settings: ", settings);
|
|
946
946
|
|
|
947
|
+
if (!settings) {
|
|
948
|
+
winston.warn("(wab) settings not found for project_id: " + project_id);
|
|
949
|
+
winston.warn("(wab) settings not found for request: ", req.body)
|
|
950
|
+
return res.sendStatus(200);
|
|
951
|
+
}
|
|
952
|
+
|
|
947
953
|
const tdClient = new TiledeskClient({
|
|
948
954
|
projectId: project_id,
|
|
949
955
|
token: settings.token,
|