@xuda.io/account_module 1.2.1177 → 1.2.1179
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.
- package/index.mjs +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -575,15 +575,15 @@ export const get_account_info = async function (req) {
|
|
|
575
575
|
|
|
576
576
|
export const get_active_account_profile_info = async function (uid) {
|
|
577
577
|
const acc_obj = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
578
|
-
|
|
578
|
+
|
|
579
579
|
// if (acc_obj.account_info.active_account_profile_id !== acc_obj.account_profile_id) {
|
|
580
|
-
active_account_profile_id = acc_obj.account_info.active_account_profile_id;
|
|
580
|
+
const active_account_profile_id = acc_obj.account_info.active_account_profile_id;
|
|
581
581
|
// }
|
|
582
582
|
try {
|
|
583
583
|
} catch (error) {}
|
|
584
|
-
const account_profile_obj = await db_module.get_couch_doc_native('xuda_accounts',
|
|
584
|
+
const account_profile_obj = await db_module.get_couch_doc_native('xuda_accounts', active_account_profile_id);
|
|
585
585
|
|
|
586
|
-
const app_id = await get_account_default_project_id(account_profile_obj.uid);
|
|
586
|
+
const app_id = await get_account_default_project_id(account_profile_obj.shared_from_uid || account_profile_obj.uid);
|
|
587
587
|
|
|
588
588
|
return { active_account_profile_id, app_id, is_main: acc_obj.account_info.active_account_profile_id === acc_obj.account_profile_id };
|
|
589
589
|
};
|