@xuda.io/account_module 1.2.123 → 1.2.124
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 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1260,10 +1260,11 @@ exports.validate_account_topup = async function (uid, items = []) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
1262
|
if (!data?.customer_obj?.default_source) {
|
|
1263
|
+
let err = new Error('no card on file');
|
|
1263
1264
|
err.code = -90;
|
|
1264
1265
|
err.billing_problem = true;
|
|
1265
|
-
|
|
1266
|
-
throw new Error('no card on file');
|
|
1266
|
+
throw err;
|
|
1267
|
+
// throw new Error('no card on file');
|
|
1267
1268
|
}
|
|
1268
1269
|
|
|
1269
1270
|
if (data?.balance?.past_due) {
|