@xuda.io/account_module 1.2.816 → 1.2.818

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 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1535,7 +1535,8 @@ const get_user_contact = async function (uid, uid_query) {
1535
1535
  };
1536
1536
 
1537
1537
  export const get_contacts = async function (req) {
1538
- const { _id, uid, name, limit, skip, bookmark, search, with_requests, filter_type = 'all' } = req;
1538
+ const { _id, uid, name, limit, skip, bookmark, search, filter_type = 'all' } = req;
1539
+ let { with_requests } = req;
1539
1540
  var opt = {
1540
1541
  selector: {
1541
1542
  docType: 'contact',
@@ -1663,12 +1664,8 @@ export const delete_contact = async function (req, job_id, headers) {
1663
1664
  contact_doc.stat_reason = 'deleted by the user';
1664
1665
 
1665
1666
  const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
1666
- const delete_contact_chats = async function () {
1667
- const chats_ret = await get_ai_chats({ reference_id: contact_id }, job_id, headers);
1668
- console.log(chats_ret);
1669
- };
1670
1667
 
1671
- delete_contact_chats();
1668
+ ai_module.delete_depended_chats(uid, contact_id);
1672
1669
  return contact_save_ret;
1673
1670
  } catch (err) {
1674
1671
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.816",
3
+ "version": "1.2.818",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {