@xuda.io/account_module 1.2.1305 → 1.2.1307

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2695,9 +2695,9 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2695
2695
 
2696
2696
  export const get_account_profiles = async function (req) {
2697
2697
  const { _id, uid, profile_name, limit, skip, bookmark, search, filter_type = 'all', profile_id } = req;
2698
-
2698
+ const app_id = await get_account_default_project_id(uid);
2699
2699
  if (_id) {
2700
- let data = await db_module.get_couch_doc('xuda_accounts', _id);
2700
+ let data = await db_module.get_app_couch_doc(app_id, _id);
2701
2701
  return data;
2702
2702
  }
2703
2703
 
@@ -2760,7 +2760,7 @@ export const get_account_profiles = async function (req) {
2760
2760
  let profiles = { docs: [], total_docs: 0 };
2761
2761
 
2762
2762
  if (filter_type !== 'pending') {
2763
- profiles = await db_module.find_couch_query('xuda_accounts', opt);
2763
+ profiles = await db_module.find_app_couch_query(app_id, opt);
2764
2764
  if (!limit || profile_id) {
2765
2765
  profiles.total_docs = profiles.docs.length;
2766
2766
  } else {
@@ -2769,7 +2769,7 @@ export const get_account_profiles = async function (req) {
2769
2769
  opt.limit = 9999;
2770
2770
  opt.fields = ['_id'];
2771
2771
 
2772
- const counter = await db_module.find_couch_query('xuda_accounts', opt);
2772
+ const counter = await db_module.find_app_couch_query(app_id, opt);
2773
2773
  profiles.total_docs = counter.docs.length;
2774
2774
  }
2775
2775
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1305",
3
+ "version": "1.2.1307",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {