@xuda.io/account_module 1.2.1165 → 1.2.1167
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 +4 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -592,7 +592,8 @@ export const get_account_name = async function (req) {
|
|
|
592
592
|
date_created_ts,
|
|
593
593
|
};
|
|
594
594
|
if (data.data.account_info) {
|
|
595
|
-
const { first_name, last_name, email, phone_number, profile_picture, profile_avatar, username, website, country, bio, industry, account_type, address, city, state, zip, business_name, auto_respond, auto_respond_mode, auto_respond_agents, avatar_source } =
|
|
595
|
+
const { first_name, last_name, email, phone_number, profile_picture, profile_avatar, username, website, country, bio, industry, account_type, address, city, state, zip, business_name, auto_respond, auto_respond_mode, auto_respond_agents, avatar_source, active_account_profile_id } =
|
|
596
|
+
data.data.account_info;
|
|
596
597
|
|
|
597
598
|
obj = {
|
|
598
599
|
_id: data.data._id,
|
|
@@ -623,6 +624,7 @@ export const get_account_name = async function (req) {
|
|
|
623
624
|
auto_respond_agents,
|
|
624
625
|
// email,// email?.[0] || '',
|
|
625
626
|
avatar_source,
|
|
627
|
+
active_account_profile_id,
|
|
626
628
|
};
|
|
627
629
|
}
|
|
628
630
|
return { code: 1, data: obj }; //is_online: data?.data?.socket_id ? true : false
|
|
@@ -2630,7 +2632,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2630
2632
|
doc.chats = 0;
|
|
2631
2633
|
|
|
2632
2634
|
doc.online = await get_online();
|
|
2633
|
-
|
|
2635
|
+
|
|
2634
2636
|
doc.border = account_info_ret.data.active_account_profile_id === doc._id ? 'green' : '';
|
|
2635
2637
|
|
|
2636
2638
|
const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
|