@xuda.io/account_module 1.2.1605 → 1.2.1606
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 +6 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2016,6 +2016,12 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
|
+
if (account_type === 'personal') {
|
|
2020
|
+
if (!name) {
|
|
2021
|
+
name = await ai_module.get_business_info(uid, contact_obj.email, account_profile_info);
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2019
2025
|
const save_ret = await save_contact(uid, contact_obj);
|
|
2020
2026
|
if (!is_spam) {
|
|
2021
2027
|
set_contact_profile_picture(uid, contact_obj._id, metadata, job_id, headers);
|