@xuda.io/account_module 1.2.1466 → 1.2.1468

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -195,7 +195,7 @@ export const update_account_info = async function (req, job_id, headers) {
195
195
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
196
196
 
197
197
  if (account_obj.account_info?.profile_picture) {
198
- if (!account_obj.account_info?.profile_avatar && account_obj.profile_avatar_stat !== 2) {
198
+ if (!account_obj.account_info?.profile_avatar && account_obj.account_info.profile_avatar_stat !== 2) {
199
199
  debugger;
200
200
  set_account_profile_picture(uid, uid, account_obj.account_info, job_id, headers);
201
201
  }
@@ -2162,7 +2162,7 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
2162
2162
 
2163
2163
  const { bio, country, mainCategory, subCategory } = account_info;
2164
2164
 
2165
- const file_ret = await ai_module.get_profile_avatar(profile_picture, uid, '', account_profile_info, account_info.account_type, 'account', account_uid, { bio, country, mainCategory, subCategory }, business_size, name, account_info.email, job_id, headers);
2165
+ const file_ret = await ai_module.get_profile_avatar(account_info.profile_picture, uid, '', account_profile_info, account_info.account_type, 'account', account_uid, { bio, country, mainCategory, subCategory }, business_size, name, account_info.email, job_id, headers);
2166
2166
 
2167
2167
  let { code: account_code, data: account_obj3 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
2168
2168
  account_obj = account_obj3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1466",
3
+ "version": "1.2.1468",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {