@xuda.io/account_module 1.2.1022 → 1.2.1024

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 +4 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2383,6 +2383,8 @@ export const onboarding_completed = async function (req, job_id, headers) {
2383
2383
  account_doc.ai_workspace_plan = 'free_ai_workspace';
2384
2384
  }
2385
2385
 
2386
+ const account_profile_ret = await create_account_profile({ uid });
2387
+
2386
2388
  account_doc.boarded_info = { headers, date_ts: Date.now() };
2387
2389
  account_doc.isBoarded = true;
2388
2390
  const save_ret = await db_module.save_couch_doc('xuda_accounts', account_doc);
@@ -2459,7 +2461,7 @@ export const create_account_profile = async function (req, job_id, headers) {
2459
2461
  docType: 'account_profile',
2460
2462
 
2461
2463
  uid,
2462
- profile_name: profile_name || acc_obj.account_info.business_name || acc_obj.account_info.name,
2464
+ profile_name, //: profile_name || acc_obj.account_info.business_name || acc_obj.account_info.name,
2463
2465
  profile_signature,
2464
2466
  profile_email,
2465
2467
  profile_picture,
@@ -2480,7 +2482,7 @@ setTimeout(async () => {
2480
2482
  let ret;
2481
2483
 
2482
2484
  // ret = await get_account_ai_usage({ uid });
2483
- ret = await create_account_profile({ uid });
2485
+ // ret = await create_account_profile({ uid });
2484
2486
 
2485
2487
  console.log(ret);
2486
2488
  }, 1000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1022",
3
+ "version": "1.2.1024",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {