@xuda.io/account_module 1.2.1114 → 1.2.1116

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
@@ -1743,7 +1743,7 @@ export const delete_contact = async function (req, job_id, headers) {
1743
1743
  contact_doc.stat_reason = 'deleted by the user';
1744
1744
 
1745
1745
  const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
1746
-
1746
+ const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1747
1747
  ai_module.delete_depended_chats(uid, contact_id);
1748
1748
  return contact_save_ret;
1749
1749
  } catch (err) {
@@ -2528,7 +2528,7 @@ setTimeout(async () => {
2528
2528
 
2529
2529
  export const get_pending_share_profile_in = async function (uid, _id) {
2530
2530
  let docs = [];
2531
- const from_opt = { selector: { docType: 'team_request', access_type: 'profile', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
2531
+ const from_opt = { selector: { docType: 'team_request', access_type: 'account_profile', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
2532
2532
 
2533
2533
  if (_id) {
2534
2534
  to_opt.selector._id = _id;
@@ -2756,7 +2756,7 @@ export const delete_account_profile = async function (req, job_id, headers) {
2756
2756
  account_profile_doc.stat_reason = 'deleted by the user';
2757
2757
 
2758
2758
  const account_profile_save_ret = await db_module.save_couch_doc('xuda_accounts', account_profile_doc);
2759
-
2759
+ const ai_module = await import(`${module_path}/ai_module/index.mjs`);
2760
2760
  ai_module.delete_depended_chats(uid, profile_id);
2761
2761
  return account_profile_save_ret;
2762
2762
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1114",
3
+ "version": "1.2.1116",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {