@xuda.io/account_module 1.2.1607 → 1.2.1609

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2011,14 +2011,14 @@ export const add_contact = async function (req, job_id, headers) {
2011
2011
  contact_obj.bio = business_bio;
2012
2012
  contact_obj.business_name = business_name;
2013
2013
 
2014
- if (!name) {
2014
+ if (!contact_obj.name) {
2015
2015
  contact_obj.name = business_name;
2016
2016
  }
2017
2017
  }
2018
2018
 
2019
2019
  if (account_type === 'personal') {
2020
- if (!name) {
2021
- contact_obj.name = await ai_module.get_business_info(uid, contact_obj.email, account_profile_info);
2020
+ if (!contact_obj.name) {
2021
+ contact_obj.name = await ai_module.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
2022
2022
  }
2023
2023
  }
2024
2024
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1607",
3
+ "version": "1.2.1609",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {