@xuda.io/account_module 1.2.1846 → 1.2.1848

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
@@ -2167,7 +2167,7 @@ export const add_contact = async function (req, job_id, headers) {
2167
2167
  const is_business = await ai_module.is_business_contact(uid, email, name, metadata.subject, metadata.summarized_body, account_profile_info);
2168
2168
  account_type = is_business ? 'business' : 'personal';
2169
2169
  if (is_business) {
2170
- business_info = await ai_module.get_business_info(uid, '', email, account_profile_info);
2170
+ business_info = await ai_module.get_business_info(uid, '', email, account_profile_info, { light: true });
2171
2171
  if (business_info.business_name !== 'Not available') {
2172
2172
  business_has_person = await ai_module.is_business_contact_has_person(uid, email, name, metadata.subject, metadata.summarized_body, account_profile_info);
2173
2173
  } else {
@@ -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
  };
@@ -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.1846",
3
+ "version": "1.2.1848",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {