@xuda.io/account_module 1.2.845 → 1.2.847

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.
Files changed (2) hide show
  1. package/index.mjs +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1269,7 +1269,7 @@ const get_contact_pattern = async function (doc) {
1269
1269
  }
1270
1270
  }
1271
1271
  } else if (doc?.reference_doc?.shared_from_uid) {
1272
- const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
1272
+ const shared_from_uid_ret = await get_account_name({ uid_query: doc.reference_doc.shared_from_uid });
1273
1273
  ret = shared_from_uid_ret.data.profile_avatar;
1274
1274
  } else if (doc.contact_uid) {
1275
1275
  switch (doc.avatar_source) {
@@ -1631,6 +1631,7 @@ export const get_contacts = async function (req) {
1631
1631
  reference_doc = _.cloneDeep(doc);
1632
1632
  doc = await db_module.get_couch_doc_native('xuda_contacts', reference_doc.share_item_id);
1633
1633
  doc.reference_doc = reference_doc;
1634
+ doc._id = reference_doc._id;
1634
1635
  }
1635
1636
 
1636
1637
  const ret_from = requests_from.docs.find((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.845",
3
+ "version": "1.2.847",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {