@xuda.io/account_module 1.2.180 → 1.2.182
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 +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -15,7 +15,6 @@ const _utils = await import(path.join(process.env.XUDA_HOME, 'common', 'xuda-cpi
|
|
|
15
15
|
const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ? '/node_modules/@xuda.io' : '');
|
|
16
16
|
const db_module = await import(`${module_path}/db_module/index.mjs`);
|
|
17
17
|
const jobs_module = await import(`${module_path}/jobs_module/index.mjs`);
|
|
18
|
-
const logs_module = await import(`${module_path}/logs_module/index.mjs`);
|
|
19
18
|
|
|
20
19
|
export const update_account_info = async function (req) {
|
|
21
20
|
const marketplace_module = await import(`${module_path}/marketplace_module/index.mjs`);
|
|
@@ -108,6 +107,11 @@ export const update_account_info = async function (req) {
|
|
|
108
107
|
}
|
|
109
108
|
}
|
|
110
109
|
|
|
110
|
+
// move later on to if (!account_obj.account_project_id) block
|
|
111
|
+
|
|
112
|
+
const drive_module = await import(`${module_path}/drive_module/index.mjs`);
|
|
113
|
+
await drive_module.create_drive_folder_workspace({ app_id: account_obj.account_project_id, folder_name: '', uid, reserve: true, path: '/' }, job_id, headers);
|
|
114
|
+
|
|
111
115
|
const ret2 = await db_module.save_couch_doc('xuda_accounts', account_obj);
|
|
112
116
|
if (ret2.code > 0) {
|
|
113
117
|
return { code: 1300, data: 'ok' };
|