@xuda.io/account_module 1.2.96 → 1.2.98
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/index.js +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1458,7 +1458,7 @@ exports.validate_account_topup = async function (uid, items = []) {
|
|
|
1458
1458
|
let err = new Error(`past_due ${data.balance.past_due}`);
|
|
1459
1459
|
err.code = -91;
|
|
1460
1460
|
err.billing_problem = true;
|
|
1461
|
-
err.topup = topup+
|
|
1461
|
+
err.topup = topup + data.balance.past_due;
|
|
1462
1462
|
err.open_invoices = data?.open_invoices;
|
|
1463
1463
|
throw err;
|
|
1464
1464
|
}
|
|
@@ -1537,6 +1537,12 @@ const get_prices = function (uid, item) {
|
|
|
1537
1537
|
price = _conf.PRICE_OBJ.utility_screen_per_month;
|
|
1538
1538
|
break;
|
|
1539
1539
|
|
|
1540
|
+
case "update_drive_addons_user":
|
|
1541
|
+
case "update_drive_addons_studio":
|
|
1542
|
+
case "update_drive_addons_workspace":
|
|
1543
|
+
price = _conf.PRICE_OBJ.utility_screen_per_month;
|
|
1544
|
+
break;
|
|
1545
|
+
|
|
1540
1546
|
default:
|
|
1541
1547
|
price = 0;
|
|
1542
1548
|
break;
|