@xuda.io/account_module 1.2.758 → 1.2.760
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 +5 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1248,8 +1248,9 @@ const get_contact_pattern = async function (doc) {
|
|
|
1248
1248
|
|
|
1249
1249
|
if (doc.my_contact) {
|
|
1250
1250
|
if (doc.account_type === 'business') {
|
|
1251
|
-
|
|
1252
|
-
|
|
1251
|
+
debugger;
|
|
1252
|
+
// const shared_from_uid_ret = await get_account_name({ uid_query: doc.contact_uid });
|
|
1253
|
+
ret = doc.profile_picture;
|
|
1253
1254
|
} else {
|
|
1254
1255
|
ret = `my-pattern.png`;
|
|
1255
1256
|
}
|
|
@@ -1484,8 +1485,8 @@ export const get_pending_share_contact_in = async function (uid, _id) {
|
|
|
1484
1485
|
};
|
|
1485
1486
|
|
|
1486
1487
|
const get_user_contact = async function (uid, uid_query) {
|
|
1487
|
-
const account_info = await get_account_name({ uid_query }).data;
|
|
1488
|
-
let doc = { docType: 'contact', account_type: account_info.account_type, date_created: Date.now(), email:
|
|
1488
|
+
const account_info = (await get_account_name({ uid_query })).data;
|
|
1489
|
+
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 };
|
|
1489
1490
|
|
|
1490
1491
|
doc.name = account_info?.account_type === 'business' ? doc.business_name : `${account_info.first_name} ${account_info.last_name}`;
|
|
1491
1492
|
doc.profile_avatar = account_info.profile_avatar;
|