@xuda.io/account_module 1.2.2131 → 1.2.2133

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 +6 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1376,12 +1376,12 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
1376
1376
  delete doc.person_info;
1377
1377
  delete doc.business_info;
1378
1378
 
1379
- const contact_chat_conversation_count_ret = await chat_conversation_count();
1380
- const contact_chat_conversation_read_ret = await chat_conversation_read();
1379
+ // const contact_chat_conversation_count_ret = await chat_conversation_count();
1380
+ // const contact_chat_conversation_read_ret = await chat_conversation_read();
1381
1381
 
1382
- doc.interactions = contact_chat_conversation_count_ret;
1383
- doc.notifications = contact_chat_conversation_count_ret - contact_chat_conversation_read_ret;
1384
- doc.chats = doc.interactions;
1382
+ // doc.interactions = contact_chat_conversation_count_ret;
1383
+ // doc.notifications = contact_chat_conversation_count_ret - contact_chat_conversation_read_ret;
1384
+ // doc.chats = doc.interactions;
1385
1385
 
1386
1386
  doc.card_background = get_contact_background(doc);
1387
1387
 
@@ -2885,7 +2885,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2885
2885
  const user_account_profiles = await get_user_account_profiles();
2886
2886
 
2887
2887
  const usage_ret = await get_account_ai_usage({ uid: doc.shared_from_uid || doc.uid });
2888
- debugger;
2888
+
2889
2889
  doc.max_credits = usage_ret?.data?.credits.total / user_account_profiles.length;
2890
2890
  doc.used_credits = 0;
2891
2891
  for (const [user, amount] of Object.entries(usage_ret?.data?.usage?.profile?.[doc._id] || {})) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2131",
3
+ "version": "1.2.2133",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {