@xuda.io/account_module 1.2.1222 → 1.2.1223

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 +4 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2704,6 +2704,10 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2704
2704
 
2705
2705
  doc.card_background = `linear-gradient(145deg, #242480 0%, #060619 100%)`;
2706
2706
  // doc.border = get_contact_border(doc);
2707
+ debugger;
2708
+ const usage_ret = await account_module.get_account_ai_usage({ uid });
2709
+ obj.USER_DATA.max_credits = usage_ret.data.credits.total;
2710
+ obj.USER_DATA.used_credits = usage_ret.data.usage.total;
2707
2711
 
2708
2712
  return doc;
2709
2713
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1222",
3
+ "version": "1.2.1223",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {