@xuda.io/account_module 1.2.1605 → 1.2.1607
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2012,7 +2012,13 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2012
2012
|
contact_obj.business_name = business_name;
|
|
2013
2013
|
|
|
2014
2014
|
if (!name) {
|
|
2015
|
-
name = business_name;
|
|
2015
|
+
contact_obj.name = business_name;
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
if (account_type === 'personal') {
|
|
2020
|
+
if (!name) {
|
|
2021
|
+
contact_obj.name = await ai_module.get_business_info(uid, contact_obj.email, account_profile_info);
|
|
2016
2022
|
}
|
|
2017
2023
|
}
|
|
2018
2024
|
|