backend-manager 3.2.57 → 3.2.59
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
|
@@ -102,7 +102,8 @@ Module.prototype.main = function () {
|
|
|
102
102
|
// ⛔️ Important to increment user count before deleting the user because user:delete will decrement the count
|
|
103
103
|
await self.incrementUserCount().catch(e => e);
|
|
104
104
|
await self.deleteUser(userRecord).catch(e => e);
|
|
105
|
-
|
|
105
|
+
// Disabled because most users create a fake email which will harm the reputation of the domain
|
|
106
|
+
// await self.sendRateEmail(userRecord).catch(e => e);
|
|
106
107
|
|
|
107
108
|
return reject(assistant.errorify(`Too many signups from this IP`, {code: 400}));
|
|
108
109
|
}
|
|
@@ -227,7 +227,7 @@ Usage.prototype.set = function (path, value) {
|
|
|
227
227
|
// Update total and period
|
|
228
228
|
const resolved = `usage.${path}.period`;
|
|
229
229
|
|
|
230
|
-
value = value
|
|
230
|
+
value = typeof value === 'undefined' ? 0 : value;
|
|
231
231
|
|
|
232
232
|
// Set the value
|
|
233
233
|
_.set(self.user, resolved, value);
|