@xuda.io/account_module 1.2.838 → 1.2.840
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 +8 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1614,7 +1614,6 @@ export const get_contacts = async function (req) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
// my contact
|
|
1616
1616
|
if (filter_type === 'all') {
|
|
1617
|
-
//all
|
|
1618
1617
|
const my_contact_doc = await get_user_contact(uid, uid);
|
|
1619
1618
|
my_contact.docs = [my_contact_doc];
|
|
1620
1619
|
}
|
|
@@ -1626,6 +1625,14 @@ export const get_contacts = async function (req) {
|
|
|
1626
1625
|
});
|
|
1627
1626
|
if (ret_to) continue;
|
|
1628
1627
|
|
|
1628
|
+
let reference_doc;
|
|
1629
|
+
|
|
1630
|
+
if (doc.shared_from_uid) {
|
|
1631
|
+
reference_doc = _.cloneDeep(doc);
|
|
1632
|
+
doc = await db_module.get_app_couch_doc_native(reference_doc.shared_from_app_id, reference_doc.share_item_id);
|
|
1633
|
+
doc.reference_doc = reference_doc;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1629
1636
|
const ret_from = requests_from.docs.find((e) => {
|
|
1630
1637
|
return e.contact_uid === doc.contact_uid;
|
|
1631
1638
|
});
|