@xuda.io/account_module 1.2.2042 → 1.2.2043

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 +0 -28
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -157,10 +157,6 @@ export const update_account_info = async function (req, job_id, headers) {
157
157
 
158
158
  account_obj.account_info.full_name = `${account_obj.account_info.first_name} ${account_obj.account_info.last_name}`;
159
159
 
160
- // if (account_info_changes_arr.includes('profile_picture') || account_info_changes_arr.includes('profile_avatar_stat')) {
161
- // account_obj.account_info['profile_avatar'] = '';
162
- // }
163
-
164
160
  //clean up received from req
165
161
  delete account_obj.account_info.gtp_token;
166
162
  delete account_obj.account_info.client_id;
@@ -169,30 +165,6 @@ export const update_account_info = async function (req, job_id, headers) {
169
165
  delete account_obj.account_info.job_id;
170
166
  delete account_obj.account_info.app_id;
171
167
 
172
- // if (!account_obj.account_project_id) {
173
- // const app_module = await import(`${module_path}/app_module/index.mjs`);
174
-
175
- // 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);
176
- // if (ret.code > -1) {
177
- // account_obj.account_project_id = ret.data;
178
-
179
- // let drive_req = { app_id: account_obj.account_project_id, uid, path: '/' };
180
- // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Profile Images', is_system: true } }, job_id, headers);
181
- // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Thumbnails', is_system: true } }, job_id, headers);
182
- // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Attachments', is_system: true } }, job_id, headers);
183
- // }
184
- // }
185
-
186
- // temp remove later on
187
-
188
- // let drive_req = { app_id: account_obj.account_project_id, uid, path: '/' };
189
- // await drive_module.create_drive_folder_workspace({ ...drive_req, ...{ folder_name: 'Chat Images' } }, job_id, headers);
190
- // await drive_module.create_drive_folder_studio({ ...drive_req, ...{ folder_name: 'Progs Thumbnails', is_system: true } }, job_id, headers);
191
- // await drive_module.create_drive_folder_studio({ ...drive_req, ...{ folder_name: 'Screenshots', is_system: true } }, job_id, headers);
192
- // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Profile Images', is_system: true } }, job_id, headers);
193
- // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Thumbnails', is_system: true } }, job_id, headers);
194
- // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Attachments', is_system: true } }, job_id, headers);
195
-
196
168
  const save_ret = await db_module.save_couch_doc('xuda_accounts', account_obj);
197
169
 
198
170
  if (account_obj.account_info?.profile_picture) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2042",
3
+ "version": "1.2.2043",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {