@tiledesk/tiledesk-server 2.3.86 → 2.3.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/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());
|