@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.
- package/index.mjs +4 -0
- 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
|
};
|