@xuda.io/account_module 1.2.1603 → 1.2.1604
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 +4 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2003,12 +2003,15 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2003
2003
|
|
|
2004
2004
|
if (account_type === 'business' && !is_spam) {
|
|
2005
2005
|
const business_info = await ai_module.get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
|
|
2006
|
-
const { business_size, business_category, business_sub_category, business_country, business_bio } = business_info;
|
|
2006
|
+
const { business_size, business_category, business_sub_category, business_country, business_bio, business_name } = business_info;
|
|
2007
2007
|
contact_obj.mainCategory = business_category;
|
|
2008
2008
|
contact_obj.subCategory = business_sub_category;
|
|
2009
2009
|
contact_obj.business_size = business_size;
|
|
2010
2010
|
contact_obj.country = business_country;
|
|
2011
2011
|
contact_obj.bio = business_bio;
|
|
2012
|
+
contact_obj.business_name = business_name;
|
|
2013
|
+
|
|
2014
|
+
if (!name) name = business_name;
|
|
2012
2015
|
}
|
|
2013
2016
|
|
|
2014
2017
|
const save_ret = await save_contact(uid, contact_obj);
|