@xuda.io/account_module 1.2.1174 → 1.2.1175

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 +11 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -573,13 +573,19 @@ export const get_account_info = async function (req) {
573
573
  });
574
574
  };
575
575
 
576
- export const get_active_account_profile = async function (uid) {
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
  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
+ // 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
+ try {
583
+ } catch (error) {}
584
+ const account_profile_obj = await db_module.get_couch_doc_native('xuda_accounts', acc_obj.account_info.active_account_profile_id);
585
+
586
+ const app_id = await get_account_default_project_id(uid);
587
+
588
+ return { active_account_profile_id };
583
589
  };
584
590
 
585
591
  export const get_account_name = async function (req) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1174",
3
+ "version": "1.2.1175",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {