@xuda.io/account_module 1.2.1608 → 1.2.1610
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1984,7 +1984,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1984
1984
|
email,
|
|
1985
1985
|
name,
|
|
1986
1986
|
stat: stat || 3,
|
|
1987
|
-
date_created:
|
|
1987
|
+
date_created: Date.now(metadata.email_data),
|
|
1988
1988
|
ts: d,
|
|
1989
1989
|
docType: 'contact',
|
|
1990
1990
|
contact_uid,
|
|
@@ -2018,7 +2018,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2018
2018
|
|
|
2019
2019
|
if (account_type === 'personal') {
|
|
2020
2020
|
if (!contact_obj.name) {
|
|
2021
|
-
contact_obj.name = await ai_module.
|
|
2021
|
+
contact_obj.name = await ai_module.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
|
|
2022
2022
|
}
|
|
2023
2023
|
}
|
|
2024
2024
|
|