@xuda.io/account_module 1.2.1847 → 1.2.1849

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 +5 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2209,6 +2209,7 @@ export const add_contact = async function (req, job_id, headers) {
2209
2209
 
2210
2210
  account_profiles: [account_profile_obj._id],
2211
2211
  account_type: cached_contact?.account_type || account_type,
2212
+ profile_avatar_stat: 0,
2212
2213
  // account_type_info: cached_contact?.account_type_info || account_type_info,
2213
2214
  // email_type_info: cached_contact?.email_type_info || email_type_info,
2214
2215
  };
@@ -2237,7 +2238,7 @@ export const add_contact = async function (req, job_id, headers) {
2237
2238
  // }
2238
2239
 
2239
2240
  if (account_type === 'personal' || contact_obj?.business_has_person) {
2240
- contact_obj.person_info = await ai_module.get_person_info(uid, contact_obj.name, contact_obj.email, account_profile_info, metadata?.summarized_body);
2241
+ contact_obj.person_info = await ai_module.get_person_info(uid, contact_obj.name, contact_obj.email, account_profile_info, metadata?.summarized_body, { light: true });
2241
2242
  if (!contact_obj.name) {
2242
2243
  contact_obj.name = await ai_module.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
2243
2244
  }
@@ -2270,9 +2271,9 @@ export const add_contact = async function (req, job_id, headers) {
2270
2271
  const save_ret = await save_contact(uid, contact_obj);
2271
2272
  save_xuda_cache(uid, 'contact', contact_obj.email, null, contact_obj);
2272
2273
 
2273
- if (!contact_obj.is_spam && contact_obj.name) {
2274
- set_contact_profile_picture(uid, contact_obj._id, metadata, job_id, headers, account_profile_info);
2275
- }
2274
+ // if (!contact_obj.is_spam && contact_obj.name) {
2275
+ // set_contact_profile_picture(uid, contact_obj._id, metadata, job_id, headers, account_profile_info);
2276
+ // }
2276
2277
 
2277
2278
  return save_ret;
2278
2279
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1847",
3
+ "version": "1.2.1849",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {