@tiledesk/tiledesk-server 2.4.25 → 2.4.27

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,38 @@
5
5
  🚀 IN PRODUCTION 🚀
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
+
9
+
10
+ # 2.4.27
11
+ - tiledesk/tiledesk-tybot-connector:0.1.83
12
+
13
+ # 2.4.26
14
+ - filter by priority
15
+ - bugfix intent invalidation by intent id
16
+
17
+ # 2.4.25
18
+ - "@tiledesk/tiledesk-tybot-connector": "^0.1.81"
19
+ - bugfix intent invalidation by intent_display_name
20
+
21
+ # 2.4.24
22
+ - Wildcard invalidate bugfix for intents, subscriptions and triggers
23
+
24
+ # 2.4.23
25
+ - waiting time chance invalidation fix
26
+ - delete redis fix
27
+
28
+ # 2.4.22
29
+ - bugfix changed del method from cachemon to native redis
30
+
31
+ # 2.4.21
32
+ - changed del method from cachemon to native redis
33
+
34
+ # 2.4.20
35
+ - removed unused redis delete with wildcard
36
+
37
+ # 2.4.19
38
+ - Added QUEUE_NAME env parameter
39
+
8
40
  # 2.4.18
9
41
  - logfix
10
42
 
@@ -500,8 +500,8 @@ if (enableGoogleSignin==true) {
500
500
  var password = uniqid()
501
501
 
502
502
 
503
-
504
- userService.signup(email, password, undefined, profile.displayName, true)
503
+ // signup ( email, password, firstname, lastname, emailverified) {
504
+ userService.signup(email, password, profile.displayName, undefined, true)
505
505
  .then(function (savedUser) {
506
506
 
507
507
 
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.4.25",
4
+ "version": "2.4.27",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -44,7 +44,7 @@
44
44
  "@tiledesk/tiledesk-kaleyra-proxy": "^0.1.7",
45
45
  "@tiledesk/tiledesk-messenger-connector": "0.1.9",
46
46
  "@tiledesk/tiledesk-rasa-connector": "^1.0.10",
47
- "@tiledesk/tiledesk-tybot-connector": "^0.1.81",
47
+ "@tiledesk/tiledesk-tybot-connector": "^0.1.83",
48
48
  "@tiledesk/tiledesk-whatsapp-connector": "^0.1.49",
49
49
  "amqplib": "^0.5.5",
50
50
  "app-root-path": "^3.0.0",
@@ -844,6 +844,16 @@
844
844
  winston.verbose("Deleted cache for faq",{err:err});
845
845
  });
846
846
 
847
+
848
+
849
+ key = "faqs:botid:"+faq.id_faq_kb+":faq:id:#"+faq.intent_id;
850
+ winston.verbose("Deleting cache for faq with key: " + key);
851
+ // found del
852
+ del(client._cache._engine.client, key, function (err, reply) { //tested
853
+ // client.del(key, function (err, reply) {
854
+ winston.debug("Deleted cache for faq",reply);
855
+ winston.verbose("Deleted cache for faq",{err:err});
856
+ });
847
857
 
848
858
  }
849
859
 
@@ -25,7 +25,7 @@ class Listener {
25
25
  let graph_url = process.env.META_GRAPH_URL || config.graphUrl || "https://graph.facebook.com/v14.0/"
26
26
  winston.debug("Whatsapp graph_url: "+ password);
27
27
 
28
- let baseFileUrl = process.env.BASE_FILE_URL
28
+ let baseFileUrl = process.env.BASE_FILE_URL || apiUrl || "http://localhost:3000"
29
29
 
30
30
  let log = process.env.WHATSAPP_LOG || false
31
31
  winston.debug("Whatsapp log: "+ log);