@xuda.io/account_module 1.2.199 → 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.
Files changed (2) hide show
  1. package/index.mjs +4 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -104,6 +104,10 @@ export const update_account_info = async function (req, job_id, headers) {
104
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.199",
3
+ "version": "1.2.200",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {