@xuda.io/account_module 1.2.1698 → 1.2.1700

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 +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2412,6 +2412,7 @@ export const get_contacts = async function (req, job_id, headers) {
2412
2412
  contact_docs.docs.push(doc);
2413
2413
 
2414
2414
  if (contact_id) {
2415
+ debugger;
2415
2416
  if (!doc.profile_avatar && (!doc.profile_avatar_stat || doc.profile_avatar_stat === 1 || (doc.profile_avatar_stat === 2 && (!doc.profile_avatar_stat_ts || Date.now() - doc.profile_avatar_stat_ts > 1000 * 60 * 5)))) {
2416
2417
  set_contact_profile_picture(uid, doc._id, {}, job_id, headers);
2417
2418
  }
@@ -2772,7 +2773,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2772
2773
  };
2773
2774
 
2774
2775
  export const get_account_profiles = async function (req) {
2775
- const { _id, uid, profile_name, limit, skip, bookmark, search, filter_type = 'all', profile_id } = req;
2776
+ const { _id, uid, profile_name, limit, skip, bookmark, search, filter_type = 'all', profile_id, active_tab } = req;
2776
2777
  const app_id = await get_account_default_project_id(uid);
2777
2778
  if (_id) {
2778
2779
  let data = await db_module.get_app_couch_doc(app_id, _id);
@@ -2872,7 +2873,7 @@ export const get_account_profiles = async function (req) {
2872
2873
  }
2873
2874
  }
2874
2875
 
2875
- if (filter_type === 'all' && !profile_id && !search && limit && profile_docs.docs.length === 1 && profile_docs.docs[0].main) {
2876
+ if (filter_type === 'all' && !profile_id && !search && active_tab && profile_docs.docs.length === 1 && profile_docs.docs[0].main) {
2876
2877
  // return empty state if no custom profile defined by user
2877
2878
  return {
2878
2879
  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.1700",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {