@xuda.io/account_module 1.2.1807 → 1.2.1808
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.
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2352,7 +2352,7 @@ 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 || ''}
|
|
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');
|
|
@@ -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 || ''}
|
|
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' });
|