@xuda.io/account_module 1.2.1700 → 1.2.1702

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 +15 -15
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2128,20 +2128,21 @@ export const add_contact = async function (req, job_id, headers) {
2128
2128
  };
2129
2129
  if (_.isEmpty(cached_contact)) {
2130
2130
  if (account_type === 'business' && !is_spam) {
2131
- const business_info = await ai_module.get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
2132
- if (business_info) {
2133
- const { business_size, business_category, business_sub_category, business_country, business_bio, business_name } = business_info;
2134
- contact_obj.mainCategory = business_category;
2135
- contact_obj.subCategory = business_sub_category;
2136
- contact_obj.business_size = business_size;
2137
- contact_obj.country = business_country;
2138
- contact_obj.bio = business_bio;
2139
- contact_obj.business_name = business_name;
2140
-
2141
- if (!contact_obj.name) {
2142
- contact_obj.name = business_name;
2143
- }
2144
- }
2131
+ contact_obj.business_info = await ai_module.get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
2132
+ // const business_info = await ai_module.get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
2133
+ // if (business_info) {
2134
+ // const { business_size, business_category, business_sub_category, business_country, business_bio, business_name } = business_info;
2135
+ // contact_obj.mainCategory = business_category;
2136
+ // contact_obj.subCategory = business_sub_category;
2137
+ // contact_obj.business_size = business_size;
2138
+ // contact_obj.country = business_country;
2139
+ // contact_obj.bio = business_bio;
2140
+ // contact_obj.business_name = business_name;
2141
+
2142
+ // if (!contact_obj.name) {
2143
+ // contact_obj.name = business_name;
2144
+ // }
2145
+ // }
2145
2146
  } else {
2146
2147
  if (!contact_obj.name) {
2147
2148
  contact_obj.name = '';
@@ -2412,7 +2413,6 @@ export const get_contacts = async function (req, job_id, headers) {
2412
2413
  contact_docs.docs.push(doc);
2413
2414
 
2414
2415
  if (contact_id) {
2415
- debugger;
2416
2416
  if (!doc.profile_avatar && (!doc.profile_avatar_stat || doc.profile_avatar_stat === 1 || (doc.profile_avatar_stat === 2 && (!doc.profile_avatar_stat_ts || Date.now() - doc.profile_avatar_stat_ts > 1000 * 60 * 5)))) {
2417
2417
  set_contact_profile_picture(uid, doc._id, {}, job_id, headers);
2418
2418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1700",
3
+ "version": "1.2.1702",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {