@xuda.io/account_module 1.2.1602 → 1.2.1604

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1956,7 +1956,7 @@ export const add_contact = async function (req, job_id, headers) {
1956
1956
  /////////////////
1957
1957
 
1958
1958
  let is_spam = false;
1959
-
1959
+ debugger;
1960
1960
  let account_type;
1961
1961
  if (contact_uid) {
1962
1962
  let { code: account_code, data: account_obj } = await db_module.get_couch_doc('xuda_accounts', contact_uid);
@@ -2003,12 +2003,15 @@ export const add_contact = async function (req, job_id, headers) {
2003
2003
 
2004
2004
  if (account_type === 'business' && !is_spam) {
2005
2005
  const business_info = await ai_module.get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
2006
- const { business_size, business_category, business_sub_category, business_country, business_bio } = business_info;
2006
+ const { business_size, business_category, business_sub_category, business_country, business_bio, business_name } = business_info;
2007
2007
  contact_obj.mainCategory = business_category;
2008
2008
  contact_obj.subCategory = business_sub_category;
2009
2009
  contact_obj.business_size = business_size;
2010
2010
  contact_obj.country = business_country;
2011
2011
  contact_obj.bio = business_bio;
2012
+ contact_obj.business_name = business_name;
2013
+
2014
+ if (!name) name = business_name;
2012
2015
  }
2013
2016
 
2014
2017
  const save_ret = await save_contact(uid, contact_obj);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1602",
3
+ "version": "1.2.1604",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {