@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.
Files changed (2) hide show
  1. package/index.js +3 -2
  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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.123",
3
+ "version": "1.2.124",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {