@xuda.io/account_module 1.2.1775 → 1.2.1776

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.
Files changed (2) hide show
  1. package/index.mjs +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2132,8 +2132,9 @@ export const add_contact = async function (req, job_id, headers) {
2132
2132
 
2133
2133
  const is_business = await ai_module.is_business_contact(uid, email, name, metadata.subject, metadata.summarized_body, account_profile_info);
2134
2134
  account_type = is_business ? 'business' : 'personal';
2135
-
2136
- has_person = await ai_module.is_business_contact_has_person(uid, email, name, metadata.subject, metadata.summarized_body, account_profile_info);
2135
+ if (is_business) {
2136
+ has_person = await ai_module.is_business_contact_has_person(uid, email, name, metadata.subject, metadata.summarized_body, account_profile_info);
2137
+ }
2137
2138
  if (_.isEmpty(cached_contact) && account_type === 'business' && !account_type_info.is_real_person) {
2138
2139
  const domain = email.includes('@') ? email.split('@')[1] : '';
2139
2140
  cached_contact = await get_xuda_cache(uid, 'contact', domain, 'metadata');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1775",
3
+ "version": "1.2.1776",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {