@xuda.io/account_module 1.2.1768 → 1.2.1770

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2222,6 +2222,7 @@ export const add_contact = async function (req, job_id, headers) {
2222
2222
  const save_ret = await save_contact(uid, contact_obj);
2223
2223
  save_xuda_cache(uid, 'contact', contact_obj.email, null, contact_obj);
2224
2224
 
2225
+ debugger;
2225
2226
  if (!contact_obj.is_spam && contact_obj.name) {
2226
2227
  set_contact_profile_picture(uid, contact_obj._id, metadata, job_id, headers, account_profile_info);
2227
2228
  }
@@ -2287,7 +2288,7 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2287
2288
  if (contact_obj?.account_type_info?.is_real_person && contact_obj?.person_info?.person_full_name !== 'Not available') {
2288
2289
  cache = await get_xuda_cache(uid, 'profile_avatar', contact_obj.email, 'file');
2289
2290
  } else {
2290
- cache = await get_xuda_cache(uid, 'profile_avatar', `${contact_obj?.business_info?.mainCategory || ''}_${contact_obj?.business_info?.subCategory || ''}`, 'file');
2291
+ cache = await get_xuda_cache(uid, 'profile_avatar', `${contact_obj?.business_info?.business_category || ''}_${contact_obj?.business_info?.business_sub_category || ''}`, 'file');
2291
2292
  }
2292
2293
  } else {
2293
2294
  cache = await get_xuda_cache(uid, 'profile_avatar', contact_obj.email, 'file');
@@ -2326,7 +2327,7 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2326
2327
  if (contact_obj?.account_type_info?.is_real_person && contact_obj?.person_info?.person_full_name !== 'Not available') {
2327
2328
  cache = await save_xuda_cache(uid, 'profile_avatar', contact_obj.email, file_ret.data, { account_type: contact_obj.account_type, type: 'contact' });
2328
2329
  } else {
2329
- cache = await save_xuda_cache(uid, 'profile_avatar', `${contact_obj?.business_info?.mainCategory || ''}_${contact_obj?.business_info?.subCategory || ''}`, file_ret.data, { account_type: contact_obj.account_type, type: 'contact' });
2330
+ cache = await save_xuda_cache(uid, 'profile_avatar', `${contact_obj?.business_info?.business_category || ''}_${contact_obj?.business_info?.business_sub_category || ''}`, file_ret.data, { account_type: contact_obj.account_type, type: 'contact' });
2330
2331
  }
2331
2332
  } else {
2332
2333
  cache = await save_xuda_cache(uid, 'profile_avatar', contact_obj.email, file_ret.data, { account_type: contact_obj.account_type, type: 'contact' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1768",
3
+ "version": "1.2.1770",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {