@xuda.io/account_module 1.2.1710 → 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 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2157,6 +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
+ if (!contact_obj.name) {
2161
+ contact_obj.name = await ai_module.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
2162
+ }
2160
2163
  }
2161
2164
  } else {
2162
2165
  if (!contact_obj.name) {
@@ -2164,11 +2167,11 @@ export const add_contact = async function (req, job_id, headers) {
2164
2167
  }
2165
2168
  }
2166
2169
 
2167
- if (account_type === 'personal') {
2168
- if (!contact_obj.name) {
2169
- contact_obj.name = await ai_module.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
2170
- }
2171
- }
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
+ // }
2172
2175
  }
2173
2176
  // else {
2174
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.1710",
3
+ "version": "1.2.1711",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {