@xuda.io/account_module 1.2.1807 → 1.2.1809

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2312,7 +2312,7 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2312
2312
  }
2313
2313
  }
2314
2314
  let file_ret = { code: 1, data: cache };
2315
-
2315
+ debugger;
2316
2316
  if (!cache) {
2317
2317
  // if personal, return profile pic, if business return logo
2318
2318
  file_ret = await ai_module.get_profile_picture(uid, contact_obj.account_type, contact_obj?.business_info?.business_domain || contact_obj.name, { email: contact_obj.email, metadata: contact_obj }, account_profile_info, job_id, headers);
@@ -2352,14 +2352,14 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2352
2352
  if (contact_obj?.business_has_person && contact_obj?.person_info?.person_full_name !== 'Not available') {
2353
2353
  cache = await get_xuda_cache(uid, 'profile_avatar', contact_obj.email, 'file');
2354
2354
  } else {
2355
- cache = await get_xuda_cache(uid, 'profile_avatar', `${contact_obj?.business_info?.business_category || ''}_${contact_obj?.business_info?.business_sub_category || ''}`, 'file');
2355
+ cache = await get_xuda_cache(uid, 'profile_avatar', `${contact_obj?.business_info?.business_category || ''} ${contact_obj?.business_info?.business_sub_category || ''}`, 'file');
2356
2356
  }
2357
2357
  } else {
2358
2358
  cache = await get_xuda_cache(uid, 'profile_avatar', contact_obj.email, 'file');
2359
2359
  }
2360
2360
 
2361
2361
  let file_ret = { code: 1, data: cache };
2362
- debugger;
2362
+
2363
2363
  if (!cache) {
2364
2364
  file_ret = await ai_module.get_profile_avatar(
2365
2365
  contact_obj.profile_picture,
@@ -2391,7 +2391,7 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2391
2391
  if (contact_obj?.business_has_person && contact_obj?.person_info?.person_full_name !== 'Not available') {
2392
2392
  cache = await save_xuda_cache(uid, 'profile_avatar', contact_obj.email, file_ret.data, { account_type: contact_obj.account_type, type: 'contact' });
2393
2393
  } else {
2394
- 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' });
2394
+ 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' });
2395
2395
  }
2396
2396
  } else {
2397
2397
  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.1807",
3
+ "version": "1.2.1809",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {