@xuda.io/account_module 1.2.1172 → 1.2.1173
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 +6 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -574,8 +574,12 @@ export const get_account_info = async function (req) {
|
|
|
574
574
|
};
|
|
575
575
|
|
|
576
576
|
export const get_active_account_profile = async function (uid) {
|
|
577
|
-
const
|
|
578
|
-
|
|
577
|
+
const acc_obj = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
578
|
+
let active_account_profile_id;
|
|
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;
|
|
581
|
+
}
|
|
582
|
+
return active_account_profile_id;
|
|
579
583
|
};
|
|
580
584
|
|
|
581
585
|
export const get_account_name = async function (req) {
|