@xuda.io/account_module 1.2.191 → 1.2.193
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 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ?
|
|
|
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
18
|
|
|
19
|
-
export const update_account_info = async function (req) {
|
|
19
|
+
export const update_account_info = async function (req, job_id, headers) {
|
|
20
20
|
const marketplace_module = await import(`${module_path}/marketplace_module/index.mjs`);
|
|
21
21
|
|
|
22
22
|
const { uid } = req;
|
|
@@ -112,9 +112,9 @@ export const update_account_info = async function (req) {
|
|
|
112
112
|
const drive_module = await import(`${module_path}/drive_module/index.mjs`);
|
|
113
113
|
let drive_req = { app_id: account_obj.account_project_id, uid, path: '/' };
|
|
114
114
|
await drive_module.create_drive_folder_workspace({ ...drive_req, ...{ folder_name: 'Chat Images', reserve: false } }, job_id, headers);
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
await drive_module.create_drive_folder_studio({ ...drive_req, ...{ folder_name: 'Progs Thumbnails', reserve: true } }, job_id, headers);
|
|
116
|
+
await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Profile Images', reserve: true } }, job_id, headers);
|
|
117
|
+
await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Thumbnails', reserve: true } }, job_id, headers);
|
|
118
118
|
|
|
119
119
|
const ret2 = await db_module.save_couch_doc('xuda_accounts', account_obj);
|
|
120
120
|
if (ret2.code > 0) {
|