@tiledesk/tiledesk-server 2.4.24 → 2.4.25
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/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.
|
|
4
|
+
"version": "2.4.25",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "node ./bin/www",
|
|
7
7
|
"pretest": "mongodb-runner start",
|
|
@@ -44,8 +44,8 @@
|
|
|
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.
|
|
48
|
-
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.
|
|
47
|
+
"@tiledesk/tiledesk-tybot-connector": "^0.1.81",
|
|
48
|
+
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.49",
|
|
49
49
|
"amqplib": "^0.5.5",
|
|
50
50
|
"app-root-path": "^3.0.0",
|
|
51
51
|
"bcrypt-nodejs": "0.0.3",
|
|
@@ -832,8 +832,9 @@
|
|
|
832
832
|
function invalidateFaq(client, faq) {
|
|
833
833
|
|
|
834
834
|
// let faqCacheKey = "cacheman:cachegoose-cache:faqs:botid:"+ botId + ":faq:id:" + key;
|
|
835
|
-
|
|
836
|
-
key = "faqs:botid:"+faq.id_faq_kb+":faq:id:"+faq.
|
|
835
|
+
//cacheman:cachegoose-cache:faqs:botid:647dc3e8da041c001396f764:faq:id:647dc3ea61ad510014ca0b46
|
|
836
|
+
key = "faqs:botid:"+faq.id_faq_kb+":faq:id:"+faq.intent_display_name;
|
|
837
|
+
// key = "faqs:botid:"+faq.id_faq_kb+":faq:id:"+faq._id;
|
|
837
838
|
// key = "faqs:botid:"+faq.id_faq_kb+":faq:id:*";
|
|
838
839
|
winston.verbose("Deleting cache for faq with key: " + key);
|
|
839
840
|
// found del
|
|
@@ -22,16 +22,18 @@ class Listener {
|
|
|
22
22
|
var password = process.env.CACHE_REDIS_PASSWORD;
|
|
23
23
|
winston.debug("Redis password: "+ password);
|
|
24
24
|
|
|
25
|
-
|
|
26
25
|
let graph_url = process.env.META_GRAPH_URL || config.graphUrl || "https://graph.facebook.com/v14.0/"
|
|
27
26
|
winston.debug("Whatsapp graph_url: "+ password);
|
|
28
27
|
|
|
28
|
+
let baseFileUrl = process.env.BASE_FILE_URL
|
|
29
|
+
|
|
29
30
|
let log = process.env.WHATSAPP_LOG || false
|
|
30
31
|
winston.debug("Whatsapp log: "+ log);
|
|
31
32
|
|
|
32
33
|
whatsapp.startApp({
|
|
33
34
|
MONGODB_URL: config.databaseUri,
|
|
34
35
|
API_URL: apiUrl,
|
|
36
|
+
BASE_FILE_URL: baseFileUrl,
|
|
35
37
|
GRAPH_URL: graph_url,
|
|
36
38
|
BASE_URL: apiUrl + "/modules/whatsapp",
|
|
37
39
|
APPS_API_URL: apiUrl + "/modules/apps",
|