backend-manager 3.0.9 → 3.0.10
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
|
@@ -22,7 +22,9 @@ Module.prototype.main = function () {
|
|
|
22
22
|
// }
|
|
23
23
|
const isPlanActive = _.get(user, 'plan.payment.active', null);
|
|
24
24
|
if (isPlanActive === true) {
|
|
25
|
-
return reject(assistant.errorManager(`Failed to delete user: There is an active paid subscription on this account. Please cancel it first and then try deleting the account again.`, {code: 400, sentry: false, send: false, log: false}).error)
|
|
25
|
+
// return reject(assistant.errorManager(`Failed to delete user: There is an active paid subscription on this account. Please cancel it first and then try deleting the account again.`, {code: 400, sentry: false, send: false, log: false}).error)
|
|
26
|
+
// return reject(assistant.errorManager(`This account cannot be deleted until the paid subscription attached to it is cancelled. Please cancel the subscription and then try to delete the account.`, {code: 400, sentry: false, send: false, log: false}).error)
|
|
27
|
+
return reject(assistant.errorManager(`This account cannot be deleted because it has a paid subscription attached to it. In order to delete the account, you must first cancel the paid subscription.`, {code: 400, sentry: false, send: false, log: false}).error)
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
await self.libraries.admin.auth().deleteUser(_.get(user, 'auth.uid', null))
|