backend-manager 3.0.55 → 3.0.57
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
|
@@ -41,7 +41,7 @@ Module.prototype.main = function () {
|
|
|
41
41
|
const signups = usage.getUsage('signups');
|
|
42
42
|
|
|
43
43
|
// Log the signup
|
|
44
|
-
usage.log(`Validating signups ${signups}/${MAX_SIGNUPS}`,);
|
|
44
|
+
usage.log(`Validating signups ${signups}/${MAX_SIGNUPS} for ip ${ip}`,);
|
|
45
45
|
|
|
46
46
|
// If over limit, reject and delete the user
|
|
47
47
|
if (signups >= MAX_SIGNUPS) {
|
|
@@ -56,7 +56,7 @@ Module.prototype.main = function () {
|
|
|
56
56
|
tries: 2,
|
|
57
57
|
log: true,
|
|
58
58
|
body: {
|
|
59
|
-
backendManagerKey: self.Manager.config.
|
|
59
|
+
backendManagerKey: self.Manager.config.backend_manager.key,
|
|
60
60
|
command: 'user:sign-out-all-sessions',
|
|
61
61
|
payload: {
|
|
62
62
|
uid: user.uid,
|
|
@@ -250,7 +250,7 @@ Usage.prototype.update = function () {
|
|
|
250
250
|
usage: self.user.usage,
|
|
251
251
|
}, {merge: true})
|
|
252
252
|
.then(() => {
|
|
253
|
-
self.log(`Usage.update(): Updated user in firestore
|
|
253
|
+
self.log(`Usage.update(): Updated user.usage in firestore`, self.user.usage);
|
|
254
254
|
|
|
255
255
|
return resolve();
|
|
256
256
|
})
|
|
@@ -260,7 +260,7 @@ Usage.prototype.update = function () {
|
|
|
260
260
|
} else {
|
|
261
261
|
self.storage.set(`${self.paths.user}.usage`, self.user.usage).write();
|
|
262
262
|
|
|
263
|
-
self.log(`Usage.update(): Updated user in local storage
|
|
263
|
+
self.log(`Usage.update(): Updated user.usage in local storage`, self.user.usage);
|
|
264
264
|
|
|
265
265
|
return resolve();
|
|
266
266
|
}
|