@xuda.io/account_module 1.2.1679 → 1.2.1681

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 -27
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -627,31 +627,8 @@ export const get_account_name = async function (req) {
627
627
  date_created_ts,
628
628
  };
629
629
  if (data.data.account_info) {
630
- const {
631
- first_name,
632
- last_name,
633
- email,
634
- phone_number,
635
- profile_picture,
636
- profile_avatar,
637
- username,
638
- website,
639
- country,
640
- bio,
641
- industry,
642
- account_type,
643
- address,
644
- city,
645
- state,
646
- zip,
647
- business_name,
648
- auto_respond,
649
- auto_respond_mode,
650
- auto_respond_agents,
651
- avatar_source,
652
- active_account_profile_id,
653
- contact_mood_level,
654
- } = data.data.account_info;
630
+ const { first_name, last_name, email, phone_number, profile_picture, profile_avatar, username, website, country, bio, industry, account_type, address, city, state, zip, business_name, auto_respond, auto_respond_mode, auto_respond_agents, avatar_source, active_account_profile_id } =
631
+ data.data.account_info;
655
632
 
656
633
  obj = {
657
634
  _id: data.data._id,
@@ -683,7 +660,6 @@ export const get_account_name = async function (req) {
683
660
  // email,// email?.[0] || '',
684
661
  avatar_source,
685
662
  active_account_profile_id,
686
- contact_mood_level,
687
663
  };
688
664
  }
689
665
  return { code: 1, data: obj }; //is_online: data?.data?.socket_id ? true : false
@@ -1292,7 +1268,7 @@ function formatPhoneWithFlag(phoneString, country = 'US') {
1292
1268
  }
1293
1269
 
1294
1270
  export const get_contact_info = async function (uid, contact_doc, _id) {
1295
- const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1271
+ // const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1296
1272
  let doc = contact_doc;
1297
1273
  if (_id) {
1298
1274
  doc = await get_contact(uid, _id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1679",
3
+ "version": "1.2.1681",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {