@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.
Files changed (2) hide show
  1. package/index.mjs +8 -6
  2. 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
- save_xuda_cache(uid, 'contact', contact_obj.domain, null, contact_obj);
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
- if (!contact_obj.name) {
2170
- contact_obj.name = await ai_module.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1709",
3
+ "version": "1.2.1711",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {