@xuda.io/account_module 1.2.1681 → 1.2.1683
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 +5 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1285,12 +1285,12 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1285
1285
|
const counts_ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'chat_conversation_item_counts', {
|
|
1286
1286
|
reduce: true,
|
|
1287
1287
|
group_level: 1,
|
|
1288
|
-
|
|
1288
|
+
|
|
1289
1289
|
startkey: [doc._id, ''],
|
|
1290
1290
|
endkey: [doc._id, 'zzzzzz'],
|
|
1291
1291
|
});
|
|
1292
1292
|
|
|
1293
|
-
return counts_ret?.rows?.[0]?.value ||
|
|
1293
|
+
return counts_ret?.rows?.[0]?.value || 0;
|
|
1294
1294
|
};
|
|
1295
1295
|
const contact_chat_conversation_count_ret = await chat_conversation_count();
|
|
1296
1296
|
doc.notifications = 0;
|
|
@@ -1360,8 +1360,8 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1360
1360
|
doc.email = doc.email;
|
|
1361
1361
|
}
|
|
1362
1362
|
|
|
1363
|
-
doc.interactions = contact_chat_conversation_count_ret
|
|
1364
|
-
doc.notifications = contact_chat_conversation_count_ret
|
|
1363
|
+
doc.interactions = contact_chat_conversation_count_ret;
|
|
1364
|
+
doc.notifications = contact_chat_conversation_count_ret;
|
|
1365
1365
|
doc.chats = doc.interactions;
|
|
1366
1366
|
|
|
1367
1367
|
// const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
|
|
@@ -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
|
-
console.log('contact_mood_level', doc._id, doc.contact_mood_level);
|
|
1377
|
+
// console.log('contact_mood_level', doc._id, doc.contact_mood_level);
|
|
1378
1378
|
doc.card_background = get_contact_background(doc);
|
|
1379
1379
|
|
|
1380
1380
|
doc.border = get_contact_border(doc);
|