@xuda.io/account_module 1.2.1261 → 1.2.1263

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
@@ -1395,7 +1395,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
1395
1395
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1396
1396
  let doc = contact_doc;
1397
1397
  if (_id) {
1398
- doc = await db_module.get_couch_doc_native('xuda_contacts', _id);
1398
+ doc = await get_contact(uid, _id);
1399
1399
  }
1400
1400
  doc.notifications = 0;
1401
1401
  if (doc.contact_uid) {
@@ -2922,4 +2922,5 @@ export const update_account_profile = async function (req, job_id, headers) {
2922
2922
  const get_contact = async function (uid, contact_id) {
2923
2923
  const account_profile_info = await get_active_account_profile_info(uid);
2924
2924
  const contact_ret = await db_module.get_app_couch_doc_native(account_profile_info.app_id, contact_id);
2925
+ return contact_ret;
2925
2926
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1261",
3
+ "version": "1.2.1263",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {