@tiledesk/tiledesk-server 2.3.86 → 2.3.87

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -6,7 +6,10 @@
6
6
  (https://www.npmjs.com/package/@tiledesk/tiledesk-server/v/2.3.77)
7
7
 
8
8
 
9
- # 2.3.86 -> PROD v3
9
+ # 2.3.87 -> PROD v3
10
+ - Geo Service fix with queue enabled
11
+
12
+ # 2.3.86
10
13
  - Geo Service fix with queue enabled
11
14
 
12
15
  # 2.3.85
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.3.86",
4
+ "version": "2.3.87",
5
5
  "scripts": {
6
6
  "start": "node ./bin/www",
7
7
  "pretest": "mongodb-runner start",
@@ -74,9 +74,9 @@ class GeoService {
74
74
  if (geo) {
75
75
  var update = {};
76
76
 
77
- // if (!request.location) {
78
- // request.location = {};
79
- // }
77
+ if (!request.location) {
78
+ request.location = {};
79
+ }
80
80
 
81
81
  if (geo.country && !request.location.country) {
82
82
  winston.debug("geo.country:"+ geo.country);
@@ -98,7 +98,7 @@ class GeoService {
98
98
  if (!request.location.ipAddress) {
99
99
  winston.debug("request.location.ipAddress: " + request.location.ipAddress);
100
100
  // request.location.ipAddress = ip;
101
- update["location.city"] = geo.city;
101
+ update["location.ipAddress"] = ip;
102
102
  }
103
103
 
104
104
  // console.log(request.location.toString());