@xuda.io/account_module 1.2.2120 → 1.2.2122

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 +4 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1737,6 +1737,7 @@ export const get_user_card = async function (req) {
1737
1737
  limit: 1,
1738
1738
  fields: ['_id'],
1739
1739
  };
1740
+ // const account_profile_info = await get_active_account_profile_info(uid);
1740
1741
  const user_contacts = await find_contact_query(uid, opt);
1741
1742
 
1742
1743
  const contact_id = user_contacts?.docs?.[0]?._id;
@@ -3325,8 +3326,9 @@ export const save_contact = async function (uid, contact_doc) {
3325
3326
  };
3326
3327
 
3327
3328
  export const find_contact_query = async function (uid, opt) {
3328
- const app_id = await get_account_default_project_id(uid);
3329
- const ret = await db_module.find_app_couch_query(app_id, opt);
3329
+ // const app_id = await get_account_default_project_id(uid);
3330
+ const account_profile_info = await get_active_account_profile_info(uid);
3331
+ const ret = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
3330
3332
  return ret;
3331
3333
  };
3332
3334
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2120",
3
+ "version": "1.2.2122",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {