@tiledesk/tiledesk-whatsapp-connector 0.1.68 → 0.1.69

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 +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -898,8 +898,6 @@ router.post("/tiledesk", async (req, res) => {
898
898
  }
899
899
  execute(commands[0]);
900
900
 
901
- return res.sendStatus(200);
902
-
903
901
  } else if (tiledeskChannelMessage.text || tiledeskChannelMessage.metadata) {
904
902
  let whatsappJsonMessage = await tlr.toWhatsapp(
905
903
  tiledeskChannelMessage,
@@ -944,6 +942,8 @@ router.post("/tiledesk", async (req, res) => {
944
942
  winston.debug("(wab) no command, no text --> skip");
945
943
  return res.sendStatus(400).send({ success: false, error: "No command or text specified. Skip message."});
946
944
  }
945
+
946
+ return res.sendStatus(200);
947
947
 
948
948
  });
949
949
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-whatsapp-connector",
3
- "version": "0.1.68",
3
+ "version": "0.1.69",
4
4
  "description": "Tiledesk Whatsapp connector",
5
5
  "main": "index.js",
6
6
  "scripts": {