@xuda.io/account_module 1.2.1698 → 1.2.1699

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2772,7 +2772,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2772
2772
  };
2773
2773
 
2774
2774
  export const get_account_profiles = async function (req) {
2775
- const { _id, uid, profile_name, limit, skip, bookmark, search, filter_type = 'all', profile_id } = req;
2775
+ const { _id, uid, profile_name, limit, skip, bookmark, search, filter_type = 'all', profile_id, active_tab } = req;
2776
2776
  const app_id = await get_account_default_project_id(uid);
2777
2777
  if (_id) {
2778
2778
  let data = await db_module.get_app_couch_doc(app_id, _id);
@@ -2872,7 +2872,7 @@ export const get_account_profiles = async function (req) {
2872
2872
  }
2873
2873
  }
2874
2874
 
2875
- if (filter_type === 'all' && !profile_id && !search && limit && profile_docs.docs.length === 1 && profile_docs.docs[0].main) {
2875
+ if (filter_type === 'all' && !profile_id && !search && active_tab && profile_docs.docs.length === 1 && profile_docs.docs[0].main) {
2876
2876
  // return empty state if no custom profile defined by user
2877
2877
  return {
2878
2878
  code: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1698",
3
+ "version": "1.2.1699",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {