backend-manager 3.2.45 → 3.2.46
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/package.json
CHANGED
|
@@ -71,7 +71,6 @@ Module.prototype.main = function () {
|
|
|
71
71
|
|
|
72
72
|
// Build user object
|
|
73
73
|
let userRecord = Manager.User().properties;
|
|
74
|
-
|
|
75
74
|
userRecord = merge(userRecord, existingUser, {
|
|
76
75
|
auth: {
|
|
77
76
|
uid: user.uid,
|
|
@@ -79,6 +78,11 @@ Module.prototype.main = function () {
|
|
|
79
78
|
},
|
|
80
79
|
});
|
|
81
80
|
|
|
81
|
+
// Fill in location
|
|
82
|
+
// userRecord.personal.location.country = userRecord.activity.geolocation.country;
|
|
83
|
+
// userRecord.personal.location.region = userRecord.activity.geolocation.region;
|
|
84
|
+
// userRecord.personal.location.city = userRecord.activity.geolocation.city;
|
|
85
|
+
|
|
82
86
|
const ip = userRecord.activity.geolocation.ip || '';
|
|
83
87
|
const ipKey = ip.replace(/[\.:]/g, '_');
|
|
84
88
|
|
|
@@ -125,9 +125,9 @@ function User(Manager, settings, options) {
|
|
|
125
125
|
},
|
|
126
126
|
gender: _.get(settings, 'personal.gender', defaults ? '' : null),
|
|
127
127
|
location: {
|
|
128
|
-
city: _.get(settings, 'personal.location.city', defaults ? '' : null),
|
|
129
128
|
country: _.get(settings, 'personal.location.country', defaults ? '' : null),
|
|
130
129
|
region: _.get(settings, 'personal.location.region', defaults ? '' : null),
|
|
130
|
+
city: _.get(settings, 'personal.location.city', defaults ? '' : null),
|
|
131
131
|
},
|
|
132
132
|
name: {
|
|
133
133
|
first: _.get(settings, 'personal.name.first', defaults ? '' : null),
|