@xuda.io/account_module 1.2.1329 → 1.2.1330
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 +2 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -580,13 +580,11 @@ export const get_account_info = async function (req) {
|
|
|
580
580
|
});
|
|
581
581
|
};
|
|
582
582
|
|
|
583
|
-
export const get_active_account_profile_info = async function (uid) {
|
|
583
|
+
export const get_active_account_profile_info = async function (uid, profile_id) {
|
|
584
584
|
const acc_obj = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
585
585
|
|
|
586
|
-
let active_account_profile_id = acc_obj.account_info.active_account_profile_id;
|
|
586
|
+
let active_account_profile_id = profile_id || acc_obj.account_info.active_account_profile_id;
|
|
587
587
|
|
|
588
|
-
try {
|
|
589
|
-
} catch (error) {}
|
|
590
588
|
const account_profile_obj = await db_module.get_app_couch_doc_native(acc_obj.account_project_id, active_account_profile_id);
|
|
591
589
|
if (account_profile_obj.share_item_id) {
|
|
592
590
|
// set the original profile id if shared
|