@xuda.io/account_module 1.2.1767 → 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 +3 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1139,7 +1139,6 @@ const get_contact_background = function (doc) {
|
|
|
1139
1139
|
|
|
1140
1140
|
const get_contact_pattern = async function (doc) {
|
|
1141
1141
|
let ret = `default-pattern.png`;
|
|
1142
|
-
debugger;
|
|
1143
1142
|
|
|
1144
1143
|
if (doc?.shared_from_uid) {
|
|
1145
1144
|
const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
|
|
@@ -1388,7 +1387,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1388
1387
|
} else {
|
|
1389
1388
|
doc.email = doc.email;
|
|
1390
1389
|
}
|
|
1391
|
-
|
|
1390
|
+
|
|
1392
1391
|
doc.is_real_person = doc?.account_type_info?.is_real_person && doc?.person_info?.person_full_name !== 'Not available';
|
|
1393
1392
|
doc.icon_pattern = await get_contact_pattern(doc);
|
|
1394
1393
|
|
|
@@ -2288,7 +2287,7 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2288
2287
|
if (contact_obj?.account_type_info?.is_real_person && contact_obj?.person_info?.person_full_name !== 'Not available') {
|
|
2289
2288
|
cache = await get_xuda_cache(uid, 'profile_avatar', contact_obj.email, 'file');
|
|
2290
2289
|
} else {
|
|
2291
|
-
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');
|
|
2292
2291
|
}
|
|
2293
2292
|
} else {
|
|
2294
2293
|
cache = await get_xuda_cache(uid, 'profile_avatar', contact_obj.email, 'file');
|
|
@@ -2327,7 +2326,7 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2327
2326
|
if (contact_obj?.account_type_info?.is_real_person && contact_obj?.person_info?.person_full_name !== 'Not available') {
|
|
2328
2327
|
cache = await save_xuda_cache(uid, 'profile_avatar', contact_obj.email, file_ret.data, { account_type: contact_obj.account_type, type: 'contact' });
|
|
2329
2328
|
} else {
|
|
2330
|
-
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' });
|
|
2331
2330
|
}
|
|
2332
2331
|
} else {
|
|
2333
2332
|
cache = await save_xuda_cache(uid, 'profile_avatar', contact_obj.email, file_ret.data, { account_type: contact_obj.account_type, type: 'contact' });
|