@xuda.io/account_module 1.2.1768 → 1.2.1769
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
|
@@ -2287,7 +2287,7 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2287
2287
|
if (contact_obj?.account_type_info?.is_real_person && contact_obj?.person_info?.person_full_name !== 'Not available') {
|
|
2288
2288
|
cache = await get_xuda_cache(uid, 'profile_avatar', contact_obj.email, 'file');
|
|
2289
2289
|
} else {
|
|
2290
|
-
cache = await get_xuda_cache(uid, 'profile_avatar', `${contact_obj?.business_info?.
|
|
2290
|
+
cache = await get_xuda_cache(uid, 'profile_avatar', `${contact_obj?.business_info?.business_category || ''}_${contact_obj?.business_info?.business_sub_category || ''}`, 'file');
|
|
2291
2291
|
}
|
|
2292
2292
|
} else {
|
|
2293
2293
|
cache = await get_xuda_cache(uid, 'profile_avatar', contact_obj.email, 'file');
|
|
@@ -2326,7 +2326,7 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2326
2326
|
if (contact_obj?.account_type_info?.is_real_person && contact_obj?.person_info?.person_full_name !== 'Not available') {
|
|
2327
2327
|
cache = await save_xuda_cache(uid, 'profile_avatar', contact_obj.email, file_ret.data, { account_type: contact_obj.account_type, type: 'contact' });
|
|
2328
2328
|
} else {
|
|
2329
|
-
cache = await save_xuda_cache(uid, 'profile_avatar', `${contact_obj?.business_info?.
|
|
2329
|
+
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
2330
|
}
|
|
2331
2331
|
} else {
|
|
2332
2332
|
cache = await save_xuda_cache(uid, 'profile_avatar', contact_obj.email, file_ret.data, { account_type: contact_obj.account_type, type: 'contact' });
|