@xuda.io/account_module 1.2.1701 → 1.2.1702
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 +15 -14
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2128,20 +2128,21 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2128
2128
|
};
|
|
2129
2129
|
if (_.isEmpty(cached_contact)) {
|
|
2130
2130
|
if (account_type === 'business' && !is_spam) {
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
}
|
|
2131
|
+
contact_obj.business_info = await ai_module.get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
|
|
2132
|
+
// const business_info = await ai_module.get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
|
|
2133
|
+
// if (business_info) {
|
|
2134
|
+
// const { business_size, business_category, business_sub_category, business_country, business_bio, business_name } = business_info;
|
|
2135
|
+
// contact_obj.mainCategory = business_category;
|
|
2136
|
+
// contact_obj.subCategory = business_sub_category;
|
|
2137
|
+
// contact_obj.business_size = business_size;
|
|
2138
|
+
// contact_obj.country = business_country;
|
|
2139
|
+
// contact_obj.bio = business_bio;
|
|
2140
|
+
// contact_obj.business_name = business_name;
|
|
2141
|
+
|
|
2142
|
+
// if (!contact_obj.name) {
|
|
2143
|
+
// contact_obj.name = business_name;
|
|
2144
|
+
// }
|
|
2145
|
+
// }
|
|
2145
2146
|
} else {
|
|
2146
2147
|
if (!contact_obj.name) {
|
|
2147
2148
|
contact_obj.name = '';
|