@xuda.io/account_module 1.2.1442 → 1.2.1444
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 +16 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2020,6 +2020,15 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2020
2020
|
// profile_picture = profile_picture_obj.url;
|
|
2021
2021
|
// }
|
|
2022
2022
|
}
|
|
2023
|
+
if (account_type === 'business' && !is_spam) {
|
|
2024
|
+
const business_info = await get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
|
|
2025
|
+
const { business_size, business_category, business_sub_category, business_country, business_bio } = business_info;
|
|
2026
|
+
contact_obj.mainCategory = business_category;
|
|
2027
|
+
contact_obj.subCategory = business_sub_category;
|
|
2028
|
+
contact_obj.business_size = business_size;
|
|
2029
|
+
contact_obj.country = business_country;
|
|
2030
|
+
contact_obj.bio = business_bio;
|
|
2031
|
+
}
|
|
2023
2032
|
const d = Date.now();
|
|
2024
2033
|
const doc = {
|
|
2025
2034
|
_id: await _common.xuda_get_uuid('contact'),
|
|
@@ -2182,13 +2191,13 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2182
2191
|
// get business info
|
|
2183
2192
|
|
|
2184
2193
|
if (!contact_obj.profile_avatar) {
|
|
2185
|
-
const business_info = await get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
|
|
2186
|
-
const { business_size, business_category, business_sub_category, business_country, business_bio } = business_info;
|
|
2187
|
-
contact_obj.mainCategory = business_category;
|
|
2188
|
-
contact_obj.subCategory = business_sub_category;
|
|
2189
|
-
contact_obj.business_size = business_size;
|
|
2190
|
-
contact_obj.country = business_country;
|
|
2191
|
-
contact_obj.bio = business_bio;
|
|
2194
|
+
// const business_info = await get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
|
|
2195
|
+
// const { business_size, business_category, business_sub_category, business_country, business_bio } = business_info;
|
|
2196
|
+
// contact_obj.mainCategory = business_category;
|
|
2197
|
+
// contact_obj.subCategory = business_sub_category;
|
|
2198
|
+
// contact_obj.business_size = business_size;
|
|
2199
|
+
// contact_obj.country = business_country;
|
|
2200
|
+
// contact_obj.bio = business_bio;
|
|
2192
2201
|
|
|
2193
2202
|
const file_ret = await ai_module.get_profile_avatar(
|
|
2194
2203
|
profile_picture,
|