@xuda.io/account_module 1.2.1151 → 1.2.1152
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 +6 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1419,6 +1419,12 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1419
1419
|
if (doc.connection_type === 'contact_connection') {
|
|
1420
1420
|
doc.friend_since = req_doc.team_req_date;
|
|
1421
1421
|
}
|
|
1422
|
+
if (doc.connection_type === 'account_profile') {
|
|
1423
|
+
try {
|
|
1424
|
+
const account_profile_doc = await db_module.get_couch_doc_native('xuda_accounts', req_doc.share_item_id);
|
|
1425
|
+
doc.account_profile = account_profile_doc;
|
|
1426
|
+
} catch (error) {}
|
|
1427
|
+
}
|
|
1422
1428
|
} catch (err) {
|
|
1423
1429
|
if (err.message === 'deleted') {
|
|
1424
1430
|
try {
|