Skip to content

Commit

Permalink
update whatsapp connector version to 0.1.30
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Troisi committed Feb 13, 2023
1 parent 19d72d8 commit 627aaa9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 38 deletions.
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@tiledesk/tiledesk-kaleyra-proxy": "^0.1.6",
"@tiledesk/tiledesk-rasa-connector": "^1.0.10",
"@tiledesk/tiledesk-tybot-connector": "^0.1.55",
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.29",
"@tiledesk/tiledesk-whatsapp-connector": "^0.1.30",
"amqplib": "^0.5.5",
"app-root-path": "^3.0.0",
"bcrypt-nodejs": "0.0.3",
Expand Down
26 changes: 7 additions & 19 deletions pubmodules/whatsapp/listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,17 @@ class Listener {
winston.debug("whatsapp config databaseUri: " + config.databaseUri);
}

// Johnny
let port = process.env.REDIS_PORT;
winston.debug("Redis port: "+ port);
var port = process.env.CACHE_REDIS_PORT || 6379;
winston.debug("-Redis port: "+ port);

let host = process.env.REDIS_HOST;
winston.debug("Redis host: "+ host);
var host = process.env.CACHE_REDIS_HOST || "127.0.0.1"
winston.debug("-Redis host: "+ host);

let password = process.env.REDIS_PASSWORD;
winston.debug("Redis password: "+ password);
// Johnny - END
var password = process.env.REDIS_PASSWORD;
winston.debug("-Redis password: "+ password);

// Andrea
// var port = process.env.CACHE_REDIS_PORT || 6379;
// winston.info("-Redis port: "+ port);

// var host = process.env.CACHE_REDIS_HOST || "127.0.0.1"
// winston.info("-Redis host: "+ host);

// var password = process.env.CACHE_REDIS_PASSWORD;
// winston.info("-Redis password: "+ password);
// Andrea - END

let graph_url = process.env.GRAPH_URL || config.graphUrl || "https://graph.facebook.com/v14.0/"
let graph_url = process.env.META_GRAPH_URL || config.graphUrl || "https://graph.facebook.com/v14.0/"
winston.debug("Whatsapp graph_url: "+ password);

let log = process.env.WHATSAPP_LOG || false
Expand Down

0 comments on commit 627aaa9

Please sign in to comment.