@xuda.io/account_module 1.2.1311 → 1.2.1313

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 +5 -8
  2. 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
- _design = await db_module.get_app_couch_doc_native(acc_obj.account_project_id, '_design/xuda');
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 = {
@@ -504,7 +501,7 @@ export const get_account_data = async function (req) {
504
501
  ai_workspace_plan: acc_obj.ai_workspace_plan,
505
502
  storage_plan_changed: acc_obj.storage_plan_changed,
506
503
  account_project_id: acc_obj.account_project_id,
507
- is_boarded: acc_obj.account_profile_id && acc_obj.account_project_id && acc_obj.ai_workspace_plan && _design.views.ai_chat_usage ? true : false, //acc_obj.isBoarded,
504
+ is_boarded: acc_obj.isBoarded, // acc_obj.account_profile_id && acc_obj.account_project_id && acc_obj.ai_workspace_plan && _design.views.ai_chat_usage ? true : false, //acc_obj.isBoarded,
508
505
 
509
506
  prices_info: acc_obj.prices_info,
510
507
  activity_usage: acc_obj.activity_usage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1311",
3
+ "version": "1.2.1313",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {