@xuda.io/account_module 1.2.1948 → 1.2.1949

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 +7 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2904,6 +2904,13 @@ export const deep_research_contact = async function (req, job_id, headers) {
2904
2904
  }
2905
2905
  }
2906
2906
 
2907
+ if (contact_doc.account_type === 'personal' || contact_doc?.business_has_person) {
2908
+ contact_doc.person_info = await ai_module.get_person_info(uid, contact_doc.name, contact_doc.email, account_profile_info, contact_doc?.metadata?.summarized_body);
2909
+ if (!contact_doc.name) {
2910
+ contact_doc.name = await ai_module.get_name_from_email_addr(uid, contact_doc.email, account_profile_info);
2911
+ }
2912
+ }
2913
+
2907
2914
  const contact_save_ret = await save_contact(uid, contact_doc);
2908
2915
  await delete_xuda_cache(contact_doc);
2909
2916
  set_contact_profile_picture(uid, contact_doc._id, {}, job_id, headers, account_profile_info, false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1948",
3
+ "version": "1.2.1949",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {