@xuda.io/account_module 1.2.788 → 1.2.790
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -585,13 +585,13 @@ 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,
|
|
592
592
|
first_name,
|
|
593
593
|
last_name,
|
|
594
|
-
|
|
594
|
+
emails,
|
|
595
595
|
phone_number,
|
|
596
596
|
profile_picture,
|
|
597
597
|
profile_avatar,
|
|
@@ -614,7 +614,8 @@ export const get_account_name = async function (req) {
|
|
|
614
614
|
auto_respond,
|
|
615
615
|
auto_respond_mode,
|
|
616
616
|
auto_respond_agents,
|
|
617
|
-
|
|
617
|
+
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
|