@tiledesk/tiledesk-server 2.10.18 → 2.10.20

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
+ # 2.10.20
9
+ - updated whatsapp-connector to 0.1.75
10
+
11
+ # 2.10.19
12
+ - updated whatsapp-connector to 0.1.74
13
+ - updated whatsapp-worker to 0.1.10
14
+ - updated voice-twilio-connector to 0.1.8
15
+ - updated get transactions endpoint (only broadcast automations are returned)
16
+
8
17
  # 2.10.18
9
18
  - updated messenger-connector 0.1.23
10
19
  - updated voice-twilio module
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-server",
3
3
  "description": "The Tiledesk server module",
4
- "version": "2.10.18",
4
+ "version": "2.10.20",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -49,11 +49,11 @@
49
49
  "@tiledesk/tiledesk-telegram-connector": "^0.1.14",
50
50
  "@tiledesk/tiledesk-train-jobworker": "^0.0.11",
51
51
  "@tiledesk/tiledesk-tybot-connector": "^0.2.130",
52
- "@tiledesk/tiledesk-whatsapp-connector": "^0.1.73",
53
- "@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.8",
52
+ "@tiledesk/tiledesk-whatsapp-connector": "^0.1.75",
53
+ "@tiledesk/tiledesk-whatsapp-jobworker": "^0.0.10",
54
54
  "@tiledesk/tiledesk-sms-connector": "^0.1.10",
55
55
  "@tiledesk/tiledesk-vxml-connector": "^0.1.49",
56
- "@tiledesk/tiledesk-voice-twilio-connector": "^0.1.7",
56
+ "@tiledesk/tiledesk-voice-twilio-connector": "^0.1.8",
57
57
  "amqplib": "^0.5.5",
58
58
  "app-root-path": "^3.0.0",
59
59
  "bcrypt-nodejs": "0.0.3",
package/routes/logs.js CHANGED
@@ -21,7 +21,7 @@ router.get('/whatsapp', async (req, res) => {
21
21
 
22
22
  let project_id = req.projectid;
23
23
 
24
- Transaction.find({ id_project: project_id }, (err, transactions) => {
24
+ Transaction.find({ id_project: project_id, broadcast: { $in: [null, true] } }, (err, transactions) => {
25
25
  if (err) {
26
26
  winston.error("Error find transactions for project_id: " + project_id);
27
27
  return res.status(400).send({ success: false, message: "Unable to find transaction for project_id " + project_id });