@xuda.io/account_module 1.2.820 → 1.2.821
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1360,7 +1360,6 @@ function formatPhoneWithFlag(phoneString, country = 'US') {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
|
|
1362
1362
|
export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
1363
|
-
debugger;
|
|
1364
1363
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
1365
1364
|
let doc = contact_doc;
|
|
1366
1365
|
if (_id) {
|
|
@@ -1519,7 +1518,7 @@ export const get_pending_share_contact_in = async function (uid, _id) {
|
|
|
1519
1518
|
|
|
1520
1519
|
const get_user_contact = async function (uid, uid_query) {
|
|
1521
1520
|
const account_info = (await get_account_name({ uid_query })).data;
|
|
1522
|
-
let doc = { docType: 'contact', account_type: account_info.account_type, date_created: Date.now(), email: account_info.email, my_contact: uid === uid_query, contact_uid: uid_query };
|
|
1521
|
+
let doc = { docType: 'contact', account_type: account_info.account_type, date_created: Date.now(), email: account_info.email, my_contact: uid === uid_query, contact_uid: uid_query, username: account_info.username };
|
|
1523
1522
|
|
|
1524
1523
|
doc.name = account_info?.account_type === 'business' ? account_info.business_name : `${account_info.first_name} ${account_info.last_name}`;
|
|
1525
1524
|
doc.profile_avatar = account_info.profile_avatar;
|