@xuda.io/account_module 1.2.1754 → 1.2.1756
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 +7 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1140,6 +1140,11 @@ const get_contact_background = function (doc) {
|
|
|
1140
1140
|
const get_contact_pattern = async function (doc) {
|
|
1141
1141
|
let ret = `default-pattern.png`;
|
|
1142
1142
|
|
|
1143
|
+
if (doc.account_type === 'business') {
|
|
1144
|
+
if (doc?.account_type_info?.is_real_person && doc?.person_info?.person_full_name !== 'Not available') {
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1143
1148
|
// if (doc.my_contact) {
|
|
1144
1149
|
// if (doc.account_type === 'business') {
|
|
1145
1150
|
// ret = doc.profile_picture;
|
|
@@ -2287,11 +2292,13 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2287
2292
|
contact_id,
|
|
2288
2293
|
{
|
|
2289
2294
|
business_name: contact_obj?.business_info?.business_name,
|
|
2295
|
+
name: contact_obj.name,
|
|
2290
2296
|
bio: contact_obj?.business_info?.bio || contact_obj?.personal_info?.bio,
|
|
2291
2297
|
country: contact_obj?.business_info?.business_country || contact_obj?.person_info?.person_nationality,
|
|
2292
2298
|
mainCategory: contact_obj?.business_info?.mainCategory,
|
|
2293
2299
|
subCategory: contact_obj?.business_info?.subCategory,
|
|
2294
2300
|
is_real_person: contact_obj?.account_type_info?.is_real_person && contact_obj?.person_info?.person_full_name !== 'Not available',
|
|
2301
|
+
person_nationality: contact_obj?.person_info?.person_nationality,
|
|
2295
2302
|
},
|
|
2296
2303
|
// { business_info: contact_obj.business_info, personal_info: contact_obj.personal_info, account_type_info: contact_obj.account_type_info },
|
|
2297
2304
|
contact_obj?.business_info?.business_size,
|