@xuda.io/account_module 1.2.1072 → 1.2.1074
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 +1 -32
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2522,37 +2522,6 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2522
2522
|
doc.profile_avatar = account_info_ret.data.profile_avatar;
|
|
2523
2523
|
}
|
|
2524
2524
|
|
|
2525
|
-
// doc.name = account_info_ret.data?.account_type === 'business' ? account_info_ret.data.business_name : `${account_info_ret.data.first_name} ${account_info_ret.data.last_name}`;
|
|
2526
|
-
|
|
2527
|
-
// if (account_info_ret.data.phone_number) {
|
|
2528
|
-
// try {
|
|
2529
|
-
// doc.phone_number = formatPhoneWithFlag(account_info_ret.data.phone_number, account_info_ret.data.country);
|
|
2530
|
-
// } catch (err) {
|
|
2531
|
-
// console.error(err);
|
|
2532
|
-
// doc.phone_number = account_info_ret.data.phone_number;
|
|
2533
|
-
// }
|
|
2534
|
-
// }
|
|
2535
|
-
|
|
2536
|
-
// if (doc.team_req_id) {
|
|
2537
|
-
// try {
|
|
2538
|
-
// const req_doc = await db_module.get_couch_doc_native('xuda_team', doc.team_req_id);
|
|
2539
|
-
// doc.connection_stat = req_doc.team_req_stat;
|
|
2540
|
-
// doc.connection_type = req_doc.access_type;
|
|
2541
|
-
// if (doc.connection_type === 'contact_connection') {
|
|
2542
|
-
// doc.friend_since = req_doc.team_req_date;
|
|
2543
|
-
// }
|
|
2544
|
-
// } catch (err) {
|
|
2545
|
-
// if (err.message === 'deleted') {
|
|
2546
|
-
// try {
|
|
2547
|
-
// let contact_doc = await db_module.get_couch_doc_native('xuda_contacts', doc._id);
|
|
2548
|
-
// contact_doc.team_req_id = '';
|
|
2549
|
-
// await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
2550
|
-
// } catch (error) {}
|
|
2551
|
-
// }
|
|
2552
|
-
// doc.connection_stat = 0;
|
|
2553
|
-
// }
|
|
2554
|
-
// }
|
|
2555
|
-
|
|
2556
2525
|
const get_pattern = async function (doc) {
|
|
2557
2526
|
let ret = `default-pattern.png`;
|
|
2558
2527
|
|
|
@@ -2583,7 +2552,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2583
2552
|
|
|
2584
2553
|
doc.avatar_source = account_info_ret.data.avatar_source;
|
|
2585
2554
|
doc.icon_pattern = await get_pattern(doc);
|
|
2586
|
-
|
|
2555
|
+
doc.name = doc.profile_name;
|
|
2587
2556
|
doc.interactions = 0;
|
|
2588
2557
|
doc.chats = 0;
|
|
2589
2558
|
|