@xuda.io/account_module 1.2.2199 → 1.2.2201

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
@@ -566,6 +566,8 @@ export const get_active_account_profile_info = async function (uid, profile_id)
566
566
 
567
567
  let active_account_profile_id = profile_id || acc_obj.account_info.active_account_profile_id;
568
568
 
569
+ if (!active_account_profile_id) throw new Error(`acc ${acc_obj._id} has no active_account_profile_id`);
570
+
569
571
  const account_profile_obj = await db_module.get_app_couch_doc_native(acc_obj.account_project_id, active_account_profile_id);
570
572
  if (account_profile_obj.share_item_id) {
571
573
  // set the original profile id if shared
@@ -575,7 +577,6 @@ export const get_active_account_profile_info = async function (uid, profile_id)
575
577
 
576
578
  return { uid: account_profile_obj.shared_from_uid || uid, account_profile_id: active_account_profile_id, app_id, is_main: active_account_profile_id === acc_obj.account_profile_id, account_profile_obj };
577
579
  } catch (err) {
578
- debugger;
579
580
  console.warn('**** get_active_account_profile_info', err);
580
581
  // console.error(err.message);
581
582
  // debugger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2199",
3
+ "version": "1.2.2201",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {