@xuda.io/account_module 1.2.198 → 1.2.200
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
|
@@ -101,9 +101,13 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
101
101
|
|
|
102
102
|
if (!account_obj.account_project_id) {
|
|
103
103
|
const app_module = await import(`${module_path}/app_module/index.mjs`);
|
|
104
|
-
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'] } });
|
|
104
|
+
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);
|
|
105
105
|
if (ret.code > -1) {
|
|
106
106
|
account_obj.account_project_id = ret.data;
|
|
107
|
+
const drive_module = await import(`${module_path}/drive_module/index.mjs`);
|
|
108
|
+
let drive_req = { app_id: account_obj.account_project_id, uid, path: '/' };
|
|
109
|
+
await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Profile Images', is_protected: true } }, job_id, headers);
|
|
110
|
+
await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Thumbnails', is_protected: true } }, job_id, headers);
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
113
|
|