@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.
Files changed (2) hide show
  1. package/index.js +6 -0
  2. 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-whatsapp-connector",
3
- "version": "0.1.72",
3
+ "version": "0.1.73",
4
4
  "description": "Tiledesk Whatsapp connector",
5
5
  "main": "index.js",
6
6
  "scripts": {