@xuda.io/account_module 1.2.312 → 1.2.313

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 +3 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -121,7 +121,9 @@ export const update_account_info = async function (req, job_id, headers) {
121
121
  }
122
122
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
123
123
  if (account_obj.account_info?.profile_picture) {
124
- ai_module.convert_profile_image_to_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj }, job_id, headers);
124
+ if (!account_obj.account_info?.profile_avatar) {
125
+ ai_module.convert_profile_image_to_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj }, job_id, headers);
126
+ }
125
127
  } else {
126
128
  // const ai_module = await import(`${module_path}/ai_module/index.mjs`);
127
129
  const profile_avatar_ret = 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.312",
3
+ "version": "1.2.313",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {