@xuda.io/account_module 1.2.1020 → 1.2.1022

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 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2459,13 +2459,13 @@ export const create_account_profile = async function (req, job_id, headers) {
2459
2459
  docType: 'account_profile',
2460
2460
 
2461
2461
  uid,
2462
- profile_name,
2462
+ profile_name: profile_name || acc_obj.account_info.business_name || acc_obj.account_info.name,
2463
2463
  profile_signature,
2464
2464
  profile_email,
2465
2465
  profile_picture,
2466
2466
  };
2467
2467
  const save_ret = await db_module.save_couch_doc('xuda_accounts', doc);
2468
- acc_obj.active_profile_id = save_ret.data.id;
2468
+ // acc_obj.active_profile_id = save_ret.data.id;
2469
2469
 
2470
2470
  return { code: 55, data: save_ret };
2471
2471
  } catch (err) {
@@ -2479,7 +2479,8 @@ setTimeout(async () => {
2479
2479
 
2480
2480
  let ret;
2481
2481
 
2482
- ret = await get_account_ai_usage({ uid });
2482
+ // ret = await get_account_ai_usage({ uid });
2483
+ ret = await create_account_profile({ uid });
2483
2484
 
2484
2485
  console.log(ret);
2485
2486
  }, 1000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1020",
3
+ "version": "1.2.1022",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {