@xuda.io/account_module 1.2.95 → 1.2.97
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 +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1455,11 +1455,11 @@ exports.validate_account_topup = async function (uid, items = []) {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
|
|
1457
1457
|
if (data?.balance?.past_due) {
|
|
1458
|
-
let err = new Error(`past_due ${data
|
|
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;
|
|
1462
|
-
err.open_invoices = data?.open_invoices
|
|
1461
|
+
err.topup = topup + data.balance.past_due;
|
|
1462
|
+
err.open_invoices = data?.open_invoices;
|
|
1463
1463
|
throw err;
|
|
1464
1464
|
}
|
|
1465
1465
|
// if (data?.balance?.past_due) {
|