@xuda.io/account_module 1.2.1713 → 1.2.1715
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2105,8 +2105,9 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
|
|
2107
2107
|
account_type_info = await ai_module.analyze_email_account_type(uid, name, email, account_profile_info, metadata?.summarized_body);
|
|
2108
|
+
account_type = account_type_info.account_type;
|
|
2108
2109
|
// const is_business = await ai_module.is_business_contact(uid, email, name, metadata.subject, metadata.summarized_body, account_profile_info);
|
|
2109
|
-
account_type = is_business ? 'business' : 'personal';
|
|
2110
|
+
// account_type = is_business ? 'business' : 'personal';
|
|
2110
2111
|
}
|
|
2111
2112
|
}
|
|
2112
2113
|
|
|
@@ -2157,7 +2158,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2157
2158
|
// }
|
|
2158
2159
|
}
|
|
2159
2160
|
|
|
2160
|
-
if (account_type === 'personal') {
|
|
2161
|
+
if (account_type === 'personal' || contact_obj?.account_type_info?.is_real_person) {
|
|
2161
2162
|
contact_obj.person_info = await ai_module.get_person_info(uid, contact_obj.name, contact_obj.email, account_profile_info, metadata?.summarized_body);
|
|
2162
2163
|
if (!contact_obj.name) {
|
|
2163
2164
|
contact_obj.name = await ai_module.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
|