@xuda.io/account_module 1.2.1225 → 1.2.1226

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2706,8 +2706,8 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2706
2706
  // doc.border = get_contact_border(doc);
2707
2707
  debugger;
2708
2708
  const usage_ret = await get_account_ai_usage({ uid });
2709
- doc.USER_DATA.max_credits = usage_ret.data.credits.total;
2710
- doc.USER_DATA.used_credits = usage_ret.data.usage.total;
2709
+ doc.max_credits = usage_ret.data.credits.total;
2710
+ doc.used_credits = usage_ret.data.usage.total;
2711
2711
 
2712
2712
  return doc;
2713
2713
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1225",
3
+ "version": "1.2.1226",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {