@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 +4 -1
- package/package.json +1 -1
- package/services/geoService.js +4 -4
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/services/geoService.js
CHANGED
@@ -74,9 +74,9 @@ class GeoService {
|
|
74
74
|
if (geo) {
|
75
75
|
var update = {};
|
76
76
|
|
77
|
-
|
78
|
-
|
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.
|
101
|
+
update["location.ipAddress"] = ip;
|
102
102
|
}
|
103
103
|
|
104
104
|
// console.log(request.location.toString());
|