@xuda.io/account_module 1.2.1709 → 1.2.1711
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 +8 -6
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2157,7 +2157,9 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2157
2157
|
|
|
2158
2158
|
if (account_type === 'personal') {
|
|
2159
2159
|
contact_obj.person_info = await ai_module.get_person_info(uid, contact_obj.name, contact_obj.email, account_profile_info, metadata?.summarized_body);
|
|
2160
|
-
|
|
2160
|
+
if (!contact_obj.name) {
|
|
2161
|
+
contact_obj.name = await ai_module.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
|
|
2162
|
+
}
|
|
2161
2163
|
}
|
|
2162
2164
|
} else {
|
|
2163
2165
|
if (!contact_obj.name) {
|
|
@@ -2165,11 +2167,11 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2165
2167
|
}
|
|
2166
2168
|
}
|
|
2167
2169
|
|
|
2168
|
-
if (account_type === 'personal') {
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
}
|
|
2170
|
+
// if (account_type === 'personal') {
|
|
2171
|
+
// if (!contact_obj.name) {
|
|
2172
|
+
// contact_obj.name = await ai_module.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
|
|
2173
|
+
// }
|
|
2174
|
+
// }
|
|
2173
2175
|
}
|
|
2174
2176
|
// else {
|
|
2175
2177
|
// // get from cache
|