@tiledesk/tiledesk-whatsapp-connector 0.1.85 → 0.1.87

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/logs/app.log CHANGED
@@ -4657,3 +4657,41 @@ info: (wab) Connect Redis Error Error: Redis connection to redis-19030.c226.eu-w
4657
4657
  info: (wab) Connect Redis Error Error: Redis connection to redis-19030.c226.eu-west-1-3.ec2.cloud.redislabs.com:19030 failed - getaddrinfo ENOTFOUND redis-19030.c226.eu-west-1-3.ec2.cloud.redislabs.com
4658
4658
  info: (wab) Connect Redis Error Error: Redis connection to redis-19030.c226.eu-west-1-3.ec2.cloud.redislabs.com:19030 failed - getaddrinfo ENOTFOUND redis-19030.c226.eu-west-1-3.ec2.cloud.redislabs.com
4659
4659
  info: (wab) Connect Redis Error Error: Redis connection to redis-19030.c226.eu-west-1-3.ec2.cloud.redislabs.com:19030 failed - getaddrinfo ENOTFOUND redis-19030.c226.eu-west-1-3.ec2.cloud.redislabs.com
4660
+ info: (wab) Starting Whatsapp App
4661
+ info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
4662
+ info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
4663
+ info: (wab) BASE_URL: https://3f2a5d6f5bef.ngrok-free.app
4664
+ info: (wab) GRAPH_URL: https://graph.facebook.com/v23.0/
4665
+ info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
4666
+ info: (wab) AMQP_MANAGER_URL is present
4667
+ info: (wab) JOB_TOPIC_EXCHANGE is present
4668
+ info: (wab) FB_APP_ID is present
4669
+ info: (wab) CONFIGURATION_ID is present
4670
+ info: (wab api) Starting api route
4671
+ info: (wab api) GRAPH_URL: https://graph.facebook.com/v23.0/
4672
+ info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
4673
+ info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
4674
+ info: (wab api) AMQP_MANAGER_URL is present
4675
+ info: (wab api) JOB_TOPIC_EXCHANGE is present
4676
+ info: (wab) Redis ready!
4677
+ info: (wab) Mongoose DB Connected
4678
+ info: (wab) KVBaseMongo successfully connected.
4679
+ info: (wab) Starting Whatsapp App
4680
+ info: (wab) API_URL: https://tiledesk-server-pre.herokuapp.com
4681
+ info: (wab) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
4682
+ info: (wab) BASE_URL: https://3f2a5d6f5bef.ngrok-free.app
4683
+ info: (wab) GRAPH_URL: https://graph.facebook.com/v23.0/
4684
+ info: (wab) APPS_API_URL: https://tiledesk-apps.herokuapp.com
4685
+ info: (wab) AMQP_MANAGER_URL is present
4686
+ info: (wab) JOB_TOPIC_EXCHANGE is present
4687
+ info: (wab) FB_APP_ID is present
4688
+ info: (wab) CONFIGURATION_ID is present
4689
+ info: (wab api) Starting api route
4690
+ info: (wab api) GRAPH_URL: https://graph.facebook.com/v23.0/
4691
+ info: (wab api) API_URL: https://tiledesk-server-pre.herokuapp.com
4692
+ info: (wab api) BASE_FILE_URL: https://tiledesk-server-pre.herokuapp.com
4693
+ info: (wab api) AMQP_MANAGER_URL is present
4694
+ info: (wab api) JOB_TOPIC_EXCHANGE is present
4695
+ info: (wab) Redis ready!
4696
+ info: (wab) KVBaseMongo successfully connected.
4697
+ info: (wab) Mongoose DB Connected
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-whatsapp-connector",
3
- "version": "0.1.85",
3
+ "version": "0.1.87",
4
4
  "description": "Tiledesk Whatsapp connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  </script>
26
26
 
27
27
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
28
- <link rel="stylesheet" href="/css/configure.css">
28
+ <link rel="stylesheet" href="./css/configure.css">
29
29
 
30
30
  <style>
31
31
  body {
@@ -5,7 +5,7 @@ class WhatsappService {
5
5
 
6
6
  constructor() {
7
7
 
8
- const requiredVars = ["FB_APP_ID", "FB_APP_SECRET", "GRAPH_URL"]
8
+ const requiredVars = ["FB_APP_ID", "FB_APP_SECRET", "META_GRAPH_URL"]
9
9
  const missing = requiredVars.filter(v => !process.env[v]);
10
10
 
11
11
  if (missing.length > 0) {
@@ -14,7 +14,7 @@ class WhatsappService {
14
14
 
15
15
  this.fb_app_id = process.env.FB_APP_ID;
16
16
  this.fb_app_secret = process.env.FB_APP_SECRET;
17
- this.graph_url = process.env.GRAPH_URL;
17
+ this.graph_url = process.env.META_GRAPH_URL || process.env.GRAPH_URL;
18
18
 
19
19
  }
20
20