@xuda.io/account_module 1.2.1677 → 1.2.1679
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 +27 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -627,8 +627,31 @@ export const get_account_name = async function (req) {
|
|
|
627
627
|
date_created_ts,
|
|
628
628
|
};
|
|
629
629
|
if (data.data.account_info) {
|
|
630
|
-
const {
|
|
631
|
-
|
|
630
|
+
const {
|
|
631
|
+
first_name,
|
|
632
|
+
last_name,
|
|
633
|
+
email,
|
|
634
|
+
phone_number,
|
|
635
|
+
profile_picture,
|
|
636
|
+
profile_avatar,
|
|
637
|
+
username,
|
|
638
|
+
website,
|
|
639
|
+
country,
|
|
640
|
+
bio,
|
|
641
|
+
industry,
|
|
642
|
+
account_type,
|
|
643
|
+
address,
|
|
644
|
+
city,
|
|
645
|
+
state,
|
|
646
|
+
zip,
|
|
647
|
+
business_name,
|
|
648
|
+
auto_respond,
|
|
649
|
+
auto_respond_mode,
|
|
650
|
+
auto_respond_agents,
|
|
651
|
+
avatar_source,
|
|
652
|
+
active_account_profile_id,
|
|
653
|
+
contact_mood_level,
|
|
654
|
+
} = data.data.account_info;
|
|
632
655
|
|
|
633
656
|
obj = {
|
|
634
657
|
_id: data.data._id,
|
|
@@ -660,6 +683,7 @@ export const get_account_name = async function (req) {
|
|
|
660
683
|
// email,// email?.[0] || '',
|
|
661
684
|
avatar_source,
|
|
662
685
|
active_account_profile_id,
|
|
686
|
+
contact_mood_level,
|
|
663
687
|
};
|
|
664
688
|
}
|
|
665
689
|
return { code: 1, data: obj }; //is_online: data?.data?.socket_id ? true : false
|
|
@@ -1374,7 +1398,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1374
1398
|
// }
|
|
1375
1399
|
// doc.contact_mood_level = chat_doc.mood_level || 0;
|
|
1376
1400
|
// }
|
|
1377
|
-
console.log('contact_mood_level', doc._id, contact_mood_level);
|
|
1401
|
+
console.log('contact_mood_level', doc._id, doc.contact_mood_level);
|
|
1378
1402
|
doc.card_background = get_contact_background(doc);
|
|
1379
1403
|
|
|
1380
1404
|
doc.border = get_contact_border(doc);
|