@xuda.io/account_module 1.2.1315 → 1.2.1317

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -56,6 +56,8 @@ export const update_account_info = async function (req, job_id, headers) {
56
56
 
57
57
  delete data.profile_avatar;
58
58
 
59
+ const account_profile_info = await account_module.get_active_account_profile_info(uid);
60
+
59
61
  function validate_input(string, max_length, is_mandatory, is_pass) {
60
62
  if (!/^[a-zA-Z0-9,.@ ]*$/.test(string) && !is_pass) {
61
63
  // if (!preg_match('^[a-zA-Z0-9,.@ ]*$', string) && !is_pass) {
@@ -190,11 +192,11 @@ export const update_account_info = async function (req, job_id, headers) {
190
192
  // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Attachments', is_system: true } }, job_id, headers);
191
193
 
192
194
  const save_ret = await db_module.save_couch_doc('xuda_accounts', account_obj);
193
-
195
+ debugger;
194
196
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
195
197
  if (account_obj.account_info?.profile_picture) {
196
198
  if (!account_obj.account_info?.profile_avatar) {
197
- ai_module.create_profile_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj }, job_id, headers);
199
+ ai_module.create_profile_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj, account_profile_info }, job_id, headers);
198
200
  }
199
201
  } else {
200
202
  ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1315",
3
+ "version": "1.2.1317",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {