@xuda.io/account_module 1.2.787 → 1.2.789
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -585,7 +585,7 @@ export const get_account_name = async function (req) {
|
|
|
585
585
|
date_created_ts,
|
|
586
586
|
};
|
|
587
587
|
if (data.data.account_info) {
|
|
588
|
-
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 } = data.data.account_info;
|
|
588
|
+
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 } = data.data.account_info;
|
|
589
589
|
|
|
590
590
|
obj = {
|
|
591
591
|
_id: data.data._id,
|
|
@@ -615,6 +615,7 @@ export const get_account_name = async function (req) {
|
|
|
615
615
|
auto_respond_mode,
|
|
616
616
|
auto_respond_agents,
|
|
617
617
|
primary_email: email?.[0] || '',
|
|
618
|
+
avatar_source,
|
|
618
619
|
};
|
|
619
620
|
}
|
|
620
621
|
return { code: 1, data: obj }; //is_online: data?.data?.socket_id ? true : false
|
|
@@ -1499,7 +1500,7 @@ const get_user_contact = async function (uid, uid_query) {
|
|
|
1499
1500
|
doc.name = account_info?.account_type === 'business' ? account_info.business_name : `${account_info.first_name} ${account_info.last_name}`;
|
|
1500
1501
|
doc.profile_avatar = account_info.profile_avatar;
|
|
1501
1502
|
doc.profile_picture = account_info.profile_picture;
|
|
1502
|
-
doc.avatar_source = account_info.
|
|
1503
|
+
doc.avatar_source = account_info.avatar_source;
|
|
1503
1504
|
doc.card_background = get_contact_background(doc);
|
|
1504
1505
|
doc.icon_pattern = await get_contact_pattern(doc);
|
|
1505
1506
|
doc.border = get_contact_border(doc);
|