@xuda.io/account_module 1.2.195 → 1.2.197
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 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -108,13 +108,13 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
// move later on to if (!account_obj.account_project_id) block
|
|
111
|
-
|
|
111
|
+
|
|
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
|
-
await drive_module.create_drive_folder_workspace({ ...drive_req, ...{ folder_name: 'Chat Images',
|
|
115
|
-
await drive_module.create_drive_folder_studio({ ...drive_req, ...{ folder_name: 'Progs Thumbnails',
|
|
116
|
-
await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Profile Images',
|
|
117
|
-
await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Thumbnails',
|
|
114
|
+
await drive_module.create_drive_folder_workspace({ ...drive_req, ...{ folder_name: 'Chat Images', is_protected: false } }, job_id, headers);
|
|
115
|
+
await drive_module.create_drive_folder_studio({ ...drive_req, ...{ folder_name: 'Progs Thumbnails', is_protected: true } }, job_id, headers);
|
|
116
|
+
await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Profile Images', is_protected: true } }, job_id, headers);
|
|
117
|
+
await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Thumbnails', is_protected: 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) {
|