@xuda.io/account_module 1.2.1674 → 1.2.1676

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1362,7 +1362,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
1362
1362
 
1363
1363
  doc.interactions = contact_chat_conversation_count_ret[0];
1364
1364
  doc.notifications = contact_chat_conversation_count_ret[0] - contact_chat_conversation_count_ret[1];
1365
- doc.chats = 0;
1365
+ doc.chats = doc.interactions;
1366
1366
 
1367
1367
  // const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
1368
1368
  // for (let chat_doc of chats_ret.data.docs) {
@@ -1374,7 +1374,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
1374
1374
  // }
1375
1375
  // doc.contact_mood_level = chat_doc.mood_level || 0;
1376
1376
  // }
1377
-
1377
+ console.log('contact_mood_level', doc._id, contact_mood_level);
1378
1378
  doc.card_background = get_contact_background(doc);
1379
1379
 
1380
1380
  doc.border = get_contact_border(doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1674",
3
+ "version": "1.2.1676",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {