@xuda.io/account_module 1.2.1253 → 1.2.1254
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2750,7 +2750,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2750
2750
|
debugger;
|
|
2751
2751
|
const usage_ret = await get_account_ai_usage({ uid });
|
|
2752
2752
|
doc.max_credits = usage_ret.data.credits.total / user_account_profiles.length;
|
|
2753
|
-
doc.used_credits = usage_ret.data.usage.
|
|
2753
|
+
doc.used_credits = usage_ret.data.usage[doc._id];
|
|
2754
2754
|
|
|
2755
2755
|
return doc;
|
|
2756
2756
|
};
|