@xuda.io/account_module 1.2.2041 → 1.2.2042

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.mjs +2 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -48,6 +48,7 @@ const jobs_ms = await import(`${module_path}/jobs_module/index_ms.mjs`);
48
48
  const team_ms = await import(`${module_path}/team_module/index_ms.mjs`);
49
49
  const email_ms = await import(`${module_path}/email_module/index_ms.mjs`);
50
50
  const marketplace_ms = await import(`${module_path}/marketplace_module/index_ms.mjs`);
51
+ const stripe_ms = await import(`${module_path}/stripe_module/index_ms.mjs`);
51
52
 
52
53
  export const update_account_info = async function (req, job_id, headers) {
53
54
  const { uid } = req;
@@ -1573,9 +1574,7 @@ export const get_account_rt_info = async function (uid) {
1573
1574
  };
1574
1575
 
1575
1576
  export const validate_account_topup = async function (uid, items = []) {
1576
- const stripe_module = await import(`${module_path}/stripe_module/index.mjs`);
1577
-
1578
- const { code, data } = await stripe_module.get_billing_metrics({ uid });
1577
+ const { code, data } = await stripe_ms.get_billing_metrics({ uid });
1579
1578
  if (code < 0) {
1580
1579
  throw new Error(data);
1581
1580
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2041",
3
+ "version": "1.2.2042",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {