@xuda.io/account_module 1.2.1452 → 1.2.1454

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 +6 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2099,7 +2099,8 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
2099
2099
  if (!account_info.profile_picture) {
2100
2100
  const file_ret = await ai_module.get_profile_picture(uid, account_info.account_type, name, { email: account_info.email, metadata, account_info }, account_profile_info, job_id, headers);
2101
2101
 
2102
- let { code: account_code, data: account_obj } = await db_module.get_couch_doc('xuda_accounts', account_uid);
2102
+ let { code: account_code, data: account_obj2 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
2103
+ account_obj = account_obj2;
2103
2104
  let account_info = account_obj.account_info;
2104
2105
 
2105
2106
  account_info.profile_picture_obj = file_ret.data;
@@ -2149,8 +2150,8 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
2149
2150
 
2150
2151
  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);
2151
2152
 
2152
- let { code: account_code, data: account_obj2 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
2153
- contact_obj = contact_obj2;
2153
+ let { code: account_code, data: account_obj3 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
2154
+ account_obj = account_obj3;
2154
2155
  let account_info = account_obj.account_info;
2155
2156
 
2156
2157
  account_info.profile_avatar_obj = file_ret;
@@ -2218,8 +2219,8 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2218
2219
  headers,
2219
2220
  );
2220
2221
 
2221
- let { code: contact_code, data: contact_obj } = await db_module.get_couch_doc('xuda_accounts', account_uid);
2222
-
2222
+ let { code: contact_code, data: contact_obj3 } = await db_module.get_couch_doc('xuda_accounts', account_uid);
2223
+ contact_obj = contact_obj3;
2223
2224
  contact_obj.profile_avatar_obj = file_ret;
2224
2225
  contact_obj.profile_avatar = contact_obj.profile_avatar_obj.file_url;
2225
2226
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1452",
3
+ "version": "1.2.1454",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {