@xuda.io/account_module 1.2.1096 → 1.2.1098

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 +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2375,7 +2375,7 @@ export const onboarding_completed = async function (req, job_id, headers) {
2375
2375
  account_doc.ai_workspace_plan = 'free_ai_workspace';
2376
2376
  }
2377
2377
 
2378
- const account_profile_ret = await create_account_profile({ uid });
2378
+ const account_profile_ret = await create_account_profile({ uid, reserve: true });
2379
2379
  account_doc.active_account_profile_id = account_profile_ret.data.id;
2380
2380
  account_doc.boarded_info = { headers, date_ts: Date.now() };
2381
2381
  account_doc.isBoarded = true;
@@ -2439,7 +2439,7 @@ export const get_account_ai_usage = async function (req, job_id, headers) {
2439
2439
  };
2440
2440
 
2441
2441
  export const create_account_profile = async function (req, job_id, headers) {
2442
- const { uid, profile_name, profile_signature, profile_email, profile_picture, profile_avatar, profile_picture_obj, profile_avatar_obj } = req;
2442
+ const { uid, profile_name, profile_signature, profile_email, profile_picture, profile_avatar, profile_picture_obj, profile_avatar_obj, reserve } = req;
2443
2443
  try {
2444
2444
  // const app_id = await get_account_default_project_id(uid);
2445
2445
  const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
@@ -2460,6 +2460,7 @@ export const create_account_profile = async function (req, job_id, headers) {
2460
2460
  profile_avatar,
2461
2461
  profile_picture_obj,
2462
2462
  profile_avatar_obj,
2463
+ reserve,
2463
2464
  };
2464
2465
  const save_ret = await db_module.save_couch_doc('xuda_accounts', doc);
2465
2466
  // acc_obj.active_profile_id = save_ret.data.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1096",
3
+ "version": "1.2.1098",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {