@xuda.io/account_module 1.2.1307 → 1.2.1308
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.
- package/index.mjs +4 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2014,6 +2014,10 @@ export const onboarding_completed = async function (req, job_id, headers) {
|
|
|
2014
2014
|
if (!account_doc.ai_workspace_plan) {
|
|
2015
2015
|
account_doc.ai_workspace_plan = 'free_ai_workspace';
|
|
2016
2016
|
}
|
|
2017
|
+
|
|
2018
|
+
//// validate account_profile_id
|
|
2019
|
+
let account_profile_ret = await db_module.get_app_couch_doc(account_doc.account_project_id, account_doc.account_profile_id);
|
|
2020
|
+
|
|
2017
2021
|
if (!account_doc.account_profile_id) {
|
|
2018
2022
|
const account_profile_ret = await create_account_profile({ uid, profile_name: account_doc.account_info.full_name, main: true });
|
|
2019
2023
|
account_doc.account_profile_id = account_profile_ret.data.id;
|