@xuda.io/account_module 1.2.1457 → 1.2.1459
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1254,6 +1254,7 @@ function formatPhoneWithFlag(phoneString, country = 'US') {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
1256
|
export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
1257
|
+
debugger;
|
|
1257
1258
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
1258
1259
|
let doc = contact_doc;
|
|
1259
1260
|
if (_id) {
|
|
@@ -2710,7 +2711,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2710
2711
|
|
|
2711
2712
|
doc.members = await get_members();
|
|
2712
2713
|
const user_account_profiles = await get_user_account_profiles();
|
|
2713
|
-
|
|
2714
|
+
|
|
2714
2715
|
const usage_ret = await get_account_ai_usage({ uid });
|
|
2715
2716
|
doc.max_credits = usage_ret.data.credits.total / user_account_profiles.length;
|
|
2716
2717
|
doc.used_credits = usage_ret.data.usage[doc._id] || 0;
|