@xuda.io/account_module 1.2.817 → 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.
- package/index.mjs +3 -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,
|
|
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',
|
|
@@ -1664,7 +1665,7 @@ export const delete_contact = async function (req, job_id, headers) {
|
|
|
1664
1665
|
|
|
1665
1666
|
const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
1666
1667
|
|
|
1667
|
-
ai_module.delete_depended_chats(contact_id);
|
|
1668
|
+
ai_module.delete_depended_chats(uid, contact_id);
|
|
1668
1669
|
return contact_save_ret;
|
|
1669
1670
|
} catch (err) {
|
|
1670
1671
|
return {
|