@xuda.io/account_module 1.2.1185 → 1.2.1186

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -582,7 +582,10 @@ export const get_active_account_profile_info = async function (uid) {
582
582
  try {
583
583
  } catch (error) {}
584
584
  const account_profile_obj = await db_module.get_couch_doc_native('xuda_accounts', active_account_profile_id);
585
-
585
+ if (account_profile_obj.share_item_id) {
586
+ // set the original profile id if shared
587
+ active_account_profile_id = account_profile_obj.share_item_id;
588
+ }
586
589
  const app_id = await get_account_default_project_id(account_profile_obj.shared_from_uid || account_profile_obj.uid);
587
590
 
588
591
  return { active_account_profile_id, app_id, is_main: acc_obj.account_info.active_account_profile_id === acc_obj.account_profile_id };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1185",
3
+ "version": "1.2.1186",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {