@xuda.io/account_module 1.2.1312 → 1.2.1314
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 +5 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -483,13 +483,10 @@ export const get_account_data = async function (req) {
|
|
|
483
483
|
try {
|
|
484
484
|
const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
|
|
485
485
|
|
|
486
|
-
let _design;
|
|
487
|
-
if (acc_obj.account_project_id) {
|
|
488
|
-
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
if (!account_doc.account_profile_id) {
|
|
492
|
-
}
|
|
486
|
+
// let _design;
|
|
487
|
+
// if (acc_obj.account_project_id) {
|
|
488
|
+
// _design = await db_module.get_app_couch_doc_native(acc_obj.account_project_id, '_design/xuda');
|
|
489
|
+
// }
|
|
493
490
|
|
|
494
491
|
var ret = { code: 1 };
|
|
495
492
|
ret.data = {
|
|
@@ -588,7 +585,7 @@ export const get_active_account_profile_info = async function (uid) {
|
|
|
588
585
|
|
|
589
586
|
try {
|
|
590
587
|
} catch (error) {}
|
|
591
|
-
const account_profile_obj = await db_module.
|
|
588
|
+
const account_profile_obj = await db_module.get_app_couch_doc_native(acc_obj.account_project_id, active_account_profile_id);
|
|
592
589
|
if (account_profile_obj.share_item_id) {
|
|
593
590
|
// set the original profile id if shared
|
|
594
591
|
active_account_profile_id = account_profile_obj.share_item_id;
|