@xuda.io/account_module 1.2.2037 → 1.2.2038

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 +0 -33
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1835,41 +1835,8 @@ export const onboarding_completed = async function (req, job_id, headers) {
1835
1835
  throw new Error(`missing profile_avatar`);
1836
1836
  }
1837
1837
 
1838
- // if (!account_doc.account_project_id) {
1839
- // const app_module = await import(`${module_path}/app_module/index.mjs`);
1840
-
1841
- // const ret = await app_module.create_project({ token_ret: req.token_ret, uid, data: { app_name: `Account ${uid} main project`, is_account_project: true, app_plugins_purchased: [' @xuda.io/xuda-dbs-plugin-xuda', '@xuda.io/xuda-framework-plugin-tailwind'] } }, job_id, headers);
1842
- // if (ret.code > -1) {
1843
- // account_doc.account_project_id = ret.data;
1844
- // const drive_module = await import(`${module_path}/drive_module/index.mjs`);
1845
- // let drive_req = { app_id: account_doc.account_project_id, uid, path: '/' };
1846
- // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Profile Images', is_system: true } }, job_id, headers);
1847
- // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Thumbnails', is_system: true } }, job_id, headers);
1848
- // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Attachments', is_system: true } }, job_id, headers);
1849
- // }
1850
- // }
1851
-
1852
1838
  account_doc.account_info.full_name = `${account_doc.account_info.first_name} ${account_doc.account_info.last_name}`;
1853
1839
 
1854
- // if (!account_doc.ai_workspace_plan) {
1855
- // account_doc.ai_workspace_plan = 'free_ai_workspace';
1856
- // }
1857
-
1858
- //// validate account_profile_id
1859
-
1860
- // if (!account_doc.account_profile_id) {
1861
- // const account_profile_ret = await create_account_profile({ uid, profile_name: account_doc.account_info.full_name, main: true });
1862
- // account_doc.account_profile_id = account_profile_ret.data.id;
1863
- // account_doc.account_info.active_account_profile_id = account_doc.account_profile_id;
1864
- // } else {
1865
- // let account_profile_ret = await db_module.get_app_couch_doc(account_doc.account_project_id, account_doc.account_profile_id);
1866
- // if (account_profile_ret.code < 0) {
1867
- // const account_profile_ret = await create_account_profile({ uid, profile_name: account_doc.account_info.full_name, main: true });
1868
- // account_doc.account_profile_id = account_profile_ret.data.id;
1869
- // account_doc.account_info.active_account_profile_id = account_doc.account_profile_id;
1870
- // }
1871
- // }
1872
-
1873
1840
  account_doc.boarded_info = { headers, date_ts: Date.now() };
1874
1841
  account_doc.isBoarded = true;
1875
1842
  const save_ret = await db_module.save_couch_doc('xuda_accounts', account_doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2037",
3
+ "version": "1.2.2038",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {